this post was submitted on 05 Aug 2026
1493 points (99.3% liked)

Programmer Humor

32678 readers
214 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 3 years ago
MODERATORS
 

This is so true tho

you are viewing a single comment's thread
view the rest of the comments
[–] Hobo@lemmy.world 5 points 1 day ago (1 children)

https://en.wikipedia.org/wiki/Npm_left-pad_incident

For the uninformed. It still somehow both boggles my mind and makes 100% sense that people didn't just write this function when they needed something to pad strings.

[–] captain_aggravated@sh.itjust.works 3 points 1 day ago (1 children)

Probably got put into a popular example and then everyone uses it because "that's how."

[–] Hobo@lemmy.world 1 points 1 day ago (1 children)

Huh... You know what that makes more sense than anything else I've come up with. I always just assumed it was lazy devs.

Something something Unix Philosophy. Write small programs that do one thing and do it well and then re-use that well tested code as often as you can rather than poorly re-implementing it over and over?