this post was submitted on 16 Jun 2025
170 points (98.3% liked)

Programmer Humor

36769 readers
387 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] BlueMagma@sh.itjust.works 5 points 1 week ago (5 children)

I didn't know about treeshaking (still unsure what it is exactly since I'm not a js Dev), but I'm guessing it still takes up Gigs of space in the project folder of every Devs PC, duplicated for each project.

[–] ddplf@szmer.info 5 points 1 week ago (2 children)

It does take a lot of space for devs, but personally I find that absolutely irrelevant, because it's your end user's experience that really matters, and - as a dev - you are most likely to have a much better rig and internet connection than your average Joe.

[–] jim3692@discuss.online 3 points 1 week ago* (last edited 1 week ago) (1 children)

Sure, in many cases the dev's computer is powerful enough to handle that.

However:

  • The more the dependencies, the more likely it is to pull-off a supply chain attack. Any of those thousands modules can be compromised and infect either the user or the developer.
  • Not all computers are optimized for working with so many tiny files. Have you ever worked in a company that uses McAfee Antivirus? Even Defender can be a massive performance hit in some cases.
[–] ddplf@szmer.info 2 points 1 week ago

I have to say that I may be a bit ignorant, because I'm mostly engaged in greenfield projects with very tiny devteams and I always keep my dependencies count low as possible

Thank you for pointing this out, that's very valuable to keep in mind

load more comments (2 replies)