Hacker News new | ask | show | jobs
by qwerty456127 665 days ago
> Micro-libraries should never be used. They should either be copy-pasted into your codebase, or not used at all.

I would prefer them to be built straight in the languages.

1 comments

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.
At the same time Go is quite barren when it comes to list (slice) functions, but I largely agree with Java and Python