this post was submitted on 11 Aug 2025
563 points (98.6% liked)

Programmer Humor

25699 readers
1233 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 33 points 3 days ago (3 children)

And this is why tree shaking exists.

[–] candyman337@lemmy.world 15 points 3 days ago (2 children)
[–] NewDark@lemmings.world 42 points 3 days 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 3 days ago
[–] zea_64@lemmy.blahaj.zone 14 points 3 days ago (1 children)

Dead code elimination but with a different name for some reason

[–] QuazarOmega@lemy.lol 4 points 2 days ago (1 children)
[–] mathiouchio@sh.itjust.works 2 points 2 days ago

We ARE all apes

[–] kamen@lemmy.world 3 points 3 days ago

It's great when it works, yeah.

[–] sheepishly@fedia.io 1 points 2 days ago (1 children)
[–] ICastFist@programming.dev 3 points 2 days ago (1 children)
[–] sheepishly@fedia.io 0 points 1 day ago

Works on my machine...