AnxiousMiisha@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 2 days agoRunklemmy.blahaj.zoneimagemessage-square143linkfedilinkarrow-up11.47Karrow-down110file-text
arrow-up11.46Karrow-down1imageRunklemmy.blahaj.zoneAnxiousMiisha@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 2 days agomessage-square143linkfedilinkfile-text
minus-squareHobo@lemmy.worldlinkfedilinkarrow-up3·10 hours agohttps://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.
minus-squareCaptain Aggravated@sh.itjust.workslinkfedilinkEnglisharrow-up2·10 hours agoProbably got put into a popular example and then everyone uses it because “that’s how.”
minus-squareHobo@lemmy.worldlinkfedilinkarrow-up1·10 hours agoHuh… You know what that makes more sense than anything else I’ve come up with. I always just assumed it was lazy devs.
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.
Probably got put into a popular example and then everyone uses it because “that’s how.”
Huh… You know what that makes more sense than anything else I’ve come up with. I always just assumed it was lazy devs.