Hacker News new | ask | show | jobs
by jdminhbg 665 days ago
Yes, everyone seems to take the wrong lesson from left-pad. The reason left-pad happened on NPM isn't that there's something uniquely wrong with how NPM was built, but that JS has a uniquely barren standard library. People aren't writing their own left-pad functions in Java or Go or Python, it's just in the stdlib.
1 comments

At the same time Go is quite barren when it comes to list (slice) functions, but I largely agree with Java and Python