3 ms·
As everyone else said, the correct answer here is very situational. Adding dependencies to your program should not be taken lightly. Rewriting something that
by nickm12 11y ago
As everyone else said, the correct answer here is very situational.
Adding dependencies to your program should not be taken lightly. Rewriting something that you can get in "a few lines of code" from an existing framework should also not be taken lightly.
In general, I lean towards using existing code where possible because it lets you spend your time writing new functionality for your own code, whatever it is. However, I never want to pull in a dependency just for one function---dependencies have their cost so I want to be sure I'm getting a lot of value as a result.