this post was submitted on 11 Aug 2025
577 points (98.7% liked)

Programmer Humor

26390 readers
1917 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] fahfahfahfah@lemmy.billiam.net 34 points 1 month ago (10 children)

And this is why tree shaking exists.

[–] candyman337@lemmy.world 15 points 1 month ago (5 children)
[–] NewDark@lemmings.world 43 points 1 month ago (1 children)

If you import 1% of your module code, you only compile the actual used code. Tree shaking is removing dead code paths that aren't used.

[–] candyman337@lemmy.world 13 points 1 month ago
load more comments (3 replies)
load more comments (7 replies)