33 ms·
This reminds me of the Node left-pad module problem in a way. I think if something is so trivial to write, you should write it rather than using a dependency.
by tmaly 6y ago
This reminds me of the Node left-pad module problem in a way. I think if something is so trivial to write, you should write it rather than using a dependency.
If it is non-trivial, I prefer the official standard libraries for a programming language. That is if a solution exists in the standard library.
I think the Go standard library with its batteries included mantra and the level of support it gets is good example of a library that should be used when a solution exists within it or by utilizing it.
- brightball 6y agoOr just C&P the relevant open source code (license allowing). Removing a dependency doesn’t have to mean writing from scratch.
- gmueckl 6y agoIf you copy the code into your project you at least need to keep track of the original authors and licensing or you're in violation of the copyright 99% of the time.
- brightball 6y agoOh, of course. Definitely.