Live data from Hacker News

NPM: 429 Too Many Requests

github.com

151–160 of 171 posts

Re: NPM: 429 Too Many Requests

#151

I’ve been considering checking node_modules into source control for some time now, has anyone else done that successfully? There would be a variety of benefits: 1. Eliminate redownload of packages on every CI build 2. Reduce the amount of gigantic IO operations from unpacking the tens-of-thousands of files sitting in node_modules. 3. Better security: code checked in can be audited better if not downloaded every singl…

Did that for a small Ivy-based project (Ivy is a simpler maven replacement) that had security implications.

We had a task every month for one developer to go manually upgrade one or two dependencies and commit the changes after testing (java libraries tend to upgrade much slower than Node).

Re: NPM: 429 Too Many Requests

#152

Honestly, don't depend on central repositories for daily availability. Especially if you are doing CI that redownloads everything from scratch. Use something like artifactory to cache the repository you are using: https://www.jfrog.com/confluence/display/RTF/npm+Registry

If you're using Yarn using the offline cache and checking that into source control is a great way to not only prevent the reliance on NPM always being online but to also make sure everyone is using the exact same versions of dependencies.

https://classic.yarnpkg.com/blog/2016/11/24/offline-mirror/

Re: NPM: 429 Too Many Requests

#153

Earlier quoted context omitted.

It helps focus the culture on the business over other social queues and aspects, it removes the anxiety that different social groups will have with that workplace. https://hackernoon.com/for-inclusive-culture-maybe-less-is-m...

> social queues FYI, the word you're thinking of is "cue", not "queue".

Ah yes, I thought it was wrong when I typed it, thanks for the prompt.

Re: NPM: 429 Too Many Requests

#154

Is it common to rely on a free service like npm for your company's core business? It seems like you would be taking a huge risk by not mirroring anything you need internally.

I strongly recommend keeping a local mirror of your dependencies... however, I've spent years maintaining such mirrors for fairly large projects (incl. Artifactory, Nexus, and one-off OSS setups like Docker registry server), and I think it's easy to underestimate how much work it is.

Whether you use expensive 'turnkey' solutions like Artifactory or keep things simple, there's just a surprising number of ways for a local mirror to go wrong, especially if you depend on it for any kind of third-party dependency compliance control.

Some repository mirrors will also become very large, which means that if you're e.g. running them in a cloud provider the bill can add up. Not really a problem on local hardware but the up-front cost of hardware can be substantial and a lot of startups have little to no in-house IT capability (e.g. the org I work with right now has reached hundreds of employees without having a single system administrator on staff, so as devops person I end up having to do the care and feeding of our recently purchased local hardware as well).

In general I think this is an important and often overlooked issue in modern tech businesses - it is amazing how many technology-centric firms like software startups get to appreciable size relying entirely on outside SaaS/PaaS providers with no real in-house IT operation. This reduces up-front and staffing cost but has a way of coming back to bite you when you hit a certain point. A conversation I've been in before, in reasonably large software outfits, is "we want actual real office phones now, but telephony-as-a-service is real expensive and the on-prem products use scary words like VLAN and QoS in their setup documentation". As someone with an IT rather than software background it's a little baffling to me how this happens, I feel like a combo sysadmin/network engineer would be an early hire. But here I am working for a company instead of running one...

Re: NPM: 429 Too Many Requests

#155
post #115

Earlier quoted context omitted.

> [..] and even how they dress. While there are many points in your post that I agree with, we really should stop worrying about how people dress. If it's a developer sitting behind a computer screen all day long with zero customer contact whatsoever, he really shouldn't be forced to wear a certain dress code just to satisfy someone's standard of professionalism. Such feelings are in similar spirit as "woman should n…

> conditioning by society. There is a limit. I'm sure you have one too if you really think about it. Is it tattoos all over the face? What about sandals? Or shorts? Or going bare-feet around the office. I don't know... It's about people giving me money for work. I don't feel like I can go to work dressed like any given Sunday.

Tattoos, someone's skin color or moles on people's facing at work doesn't bother me. Someone complaining about it would.

Sandals/shorts/barefeet? It's winter here but in those brief moments of summer please do that. Wearing a three piece suit means you won't be able to work as hard during the heat wave.

Re: NPM: 429 Too Many Requests

#156
post #10

Earlier quoted context omitted.

Some people getting in the workforce in the last few years have troubles making the distinction between work and play contexts. It's extremely visible on github, slack, &c. which are more and more looking like discord / reddit (gifs, memes, random jokes in the middle of serious discussions)

there's also quite some personal contributors in github, for these it's not a work context to begin with

It's not about employment status. Injecting noise into a channel that is currently being used to diagnose a severe bug affecting many people disrespects the time of those working to fix the issue. Other, more appropriate venues are available for people who want to blow off some steam.

Re: NPM: 429 Too Many Requests

#157
post #6

This seems to be slowly clearing up. Regardless, can we talk about the conduct in this GitHub thread? I know every community is different but is it common to have memes and jokes posted this quickly and often in a GitHub issue? It makes it really hard to follow and discourages genuinely useful discussion of workarounds or progress.

The countless +1 and "Same here" comments without additonal info are a huge problem as well on Github. A simple click on a +1 button would suffice instead of a full comment. It's especially irritating when you follow a lot of issues hoping to get notified when there is a resolution but instead you get spammed by people making these pointless comments.

It's a social problem rather than a technical one at this point. When Github had no emojis people had no choice but to leave '+1' comments. Now even with that choice some communities still comment in this way for some reason. Commenting is open-ended and moderation would be needed to filter out the repetition. People can also post GIFs, but they can also use the same image upload functionality to post screenshots of bug repros. It hinges on what the user believes is the better choice for getting the point across.

About all you can do is change the mindset of the community making the comments, which is hard as they're numerous.

Re: NPM: 429 Too Many Requests

#158

Earlier quoted context omitted.

I don't work with JS or related ecosystems, but how common are NPM outages?

It’s been super reliable, in my experience, and given their traffic volume, I’m pretty impressed with that.

The other day I needed to use it for the first time in a year. A package that is used in many other packages host by npm was returning a 404. Slowly stackoverflow started to fill up with similiar questions.

Apppearly 4 important packages were unavailable in my region because they were deleted by accident. Some people were vpning into Europe, I found an Italian mirror.

Not sure if things are always that crazy but I don't have a reliable feel.

Re: NPM: 429 Too Many Requests

#159
post #115

Earlier quoted context omitted.

> [..] and even how they dress. While there are many points in your post that I agree with, we really should stop worrying about how people dress. If it's a developer sitting behind a computer screen all day long with zero customer contact whatsoever, he really shouldn't be forced to wear a certain dress code just to satisfy someone's standard of professionalism. Such feelings are in similar spirit as "woman should n…

> conditioning by society. There is a limit. I'm sure you have one too if you really think about it. Is it tattoos all over the face? What about sandals? Or shorts? Or going bare-feet around the office. I don't know... It's about people giving me money for work. I don't feel like I can go to work dressed like any given Sunday.

> It's about people giving me money for work.

Work is the key word here. Is you work is about dressing yourself up? Then why makes it about this?

Do what you are paid for, working.

Re: NPM: 429 Too Many Requests

#160
post #41

Earlier quoted context omitted.

Most companies try to stay professional, and many people carry that behavior into github. However I have worked at a major tech company that trended closer to "millenial" in age. There memes were an everyday part of the corporate culture. Professional emails quite often would have a meme included. I can see someone coming from a corporate culture like that thinking it would be perfectly normal to carry this behavior…

I was at Amazon and meme wars were common. I get that it may seem absurd but when done at the right time, humor can help people defuse a tense situation. I am honestly surprised about the number of very upset people in this thread and the trashing of millennials. Yeah the ass of every workplace generational joke- most millennials have kids going to college now. If you think millennials like memes Wait until you work…

Memes are a lazy person's attempt at humour. I can't wait to see what post-millennials come up with to replace these placeholders for humour.
Post reply on HN