1212
you are viewing a single comment's thread
view the rest of the comments
[-] ILikeBoobies@lemmy.ca 31 points 1 month ago

Button that does something? That’s too advanced for me, I’ll use a library

[-] ssfckdt@lemmy.blahaj.zone 9 points 1 month ago* (last edited 1 month ago)

cries in left_pad

It's kind of astonishing how many people leaned on that library just to add fucking spaces to strings

[-] boonhet@lemm.ee 7 points 1 month ago

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.

[-] CXORA@aussie.zone 2 points 1 month ago

It is, as padStart, which makes the number of packages using leftpad even more incomprehensible

[-] boonhet@lemm.ee 2 points 1 month ago

Brb changing a million libraries on npm to use padStart instead of left-pad and removing the dependency

[-] CXORA@aussie.zone 1 points 1 month ago

Thanks bro. lgtm.

load more comments (1 replies)
load more comments (1 replies)
load more comments (5 replies)
this post was submitted on 06 May 2025
1212 points (96.8% liked)

Programmer Humor

24206 readers
436 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