this post was submitted on 06 May 2025
1147 points (96.7% liked)
Programmer Humor
23083 readers
1603 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It should be in the standard library anyway. Why the hell is it not?!
I mean yeah, I can write my own function to do the same thing and probably I've done it at some point in some coding exercise as a beginner, but this seems like such a common thing to use, it should be in the standard library of any sane language.
It is, as padStart, which makes the number of packages using leftpad even more incomprehensible
Brb changing a million libraries on npm to use padStart instead of left-pad and removing the dependency