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

Programmer Humor

37270 readers
32 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ddplf@szmer.info 3 points 1 month ago* (last edited 1 month ago) (8 children)

Which is of very little importance in most cases, because modern bundlers incorporate treeshaking in order to filter out all the unused code when you're building a production application

Edit: okay well appearently that's controversial for some reason

[–] BlueMagma@sh.itjust.works 6 points 1 month 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.

[–] dazeous@lemmy.ml 3 points 1 month ago

Some use 'pnpm' package manager, alternative to default, where the packages are downloaded once to a central location, and per project directory, it links to the original location so files aren't duplicated saving space

load more comments (4 replies)
load more comments (6 replies)