3 ms·
Reminds me of the Go Proverb, "A little copying is better than a little dependency." When I created a hello world app in React, it took what felt like several
by sethammons 9y ago
Reminds me of the Go Proverb, "A little copying is better than a little dependency."
When I created a hello world app in React, it took what felt like several minutes to pull down what seemed like hundreds of dependencies. My uninformed opinion is that the standard operating procedure in Reactland is to pull in "well tested" dependencies, where "well tested" means "downloaded a lot" and you hope the two are correlated.
- trevyn 9y agoI would love to see third-party quality ratings for "popular-ish" packages.
- rwbcxrz 9y agoMost of the dependencies installed for a hello world React app are not runtime dependencies. I don't know if there's a real "standard operating procedure" or not, but it seems to me that it's the responsibility of each project maintainer to evaluate the fitness of a particular dependency for that project. Just like with every package manager that I've ever heard of, you're responsible for what you install. I'm sure you can get buggy packages with poor test coverage via apt-get install / brew install / gem install / whatever-else install.
- mcguire 9y agoAt what point does maintaining the code you have copied become easier than understanding and maintaining the transitive closure of your dependencies?