5 ms·
Unpopular opinion: 1GB is not a lot of data for most people in the first world.
by sneak 7y ago
Unpopular opinion: 1GB is not a lot of data for most people in the first world.
- zamadatix 7y agoI think that's a relatively popular opinion and not what people mean when they point out the size of the node_modules folder is huge.
- Twirrim 7y agoMost people aren't living in the first world, and don't have high bandwidth / low latency connections with which to make pulling down 100s of MB of javascript a non-event. While, yes, they can choose to just not use such tools or libraries, it also presents a fun barrier for learning. It's also perfectly fine to not give a damn about either of the above.
- sneak 7y agoI wonder what percentage of React/Angular/et c contributors live in places where 1GB isn’t a lot of data.
- galvin 7y agoIt's worth noting that node_modules is for project dependencies and most of it won't be included in the final assets. Many projects make use of build tools, command line utilities, testing suites and other libraries in development which don't get deployed. Even for actual app dependencies, many packages include source code, type definitions and multiple choices of builds which inflate the size of the node_modules folder but don't get used in production. So hundreds of megabytes of dependencies can easily be used to make something only a few megabytes in size. Your point still stands of course!
- Macha 7y agoIt's also not a new problem. I remember downloading a 150mb JDK overnight on dial-up for Java 2.
- ryder9 7y agowell usually a framework minimizes and scaffolds itself down to a few js files, css, and html; front end won't ever see the node_modules; only the backend will and that doesn't matter to the user
- paulie_a 7y agoMost people are not living in the US. Just my target audience. It will never be a global enterprise, so who cares if people elsewhere have issues. As a developer I am not spending time on documentation translation (or any for that matter)
- true_religion 7y agoUm. So as someone living in not the first world, let me give some perspective. People here do not use “first world” sites. Even without the JavaScript, sending bits across the ocean just to see an image takes too long. Everyone uses local nation sites, some of which even use languages spoken by no more than 5 million people world wide. We aren’t the target market for the “first world” website, and that’s fine as the first world isn’t the target for any of our digital goods either. It just feels a bit patronizing when this discussion is brought up, as no one is dying to use a random American made website. Facebook and Google are exceptions, not the rule.
- dr-detroit 7y agoThey don't really care about user experience in Botswana. The focus on developing nation performance is an excuse to cover up the traditional computer science garbage mentality that everything has to be "optimized". Part ego enlargement and part fear of being totally ignorant of the real reason for things existing. Its the same people who don't know what tree-shaking is but are happy to write a blog article and announce to the world that javascript modules are too big.
- derefr 7y agoI don't really care about bytes of my disk being used. But inodes of my filesystem are never going to be cheap. If there are so many little files in the node_modules dir that it takes ~3 minutes to run `npm install` or to `rm -r` the folder thus created, that's a bit silly.
- Izkata 7y agoWe use shared dev VMs at work to help ensure consistency, and have actually run out of inodes several times solely because of node. The only error message you get is about disk space, so it's a really confusing situation for people who haven't seen it before.
- voltagex_ 7y agoI am in Australia, which is "first world" (I think you mean "developed") on a good day. Over the new year, I was in an area where all power and phone communications were first limited, then cut completely. I was able to send/receive 30 megabytes of data in about 8 hours. I understand there's always competing constraints and priorities, but shouldn't we be striving to do the best possible job?
- sneak 7y agoI guess what I meant is that we should be doing a better job on bandwidth; a few hundred megabytes of deps isn’t a big deal in the scheme of ram/storage these days. Hopefully things like Starlink will improve the situation a lot.
- dillonmckay 7y agoSo, if gas was 10 cents a gallon, buy a fullsize truck?
- sneak 7y agoBetter: If a 64GB SSD is $20, use a 20GB OS.