Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: