4 ms·
That claim doesn't even pass a simple common sense test: why would Node.js developers be so much more influenced by Bob Martin (of object oriented and Java fame
by tchaffee 6y ago
That claim doesn't even pass a simple common sense test: why would Node.js developers be so much more influenced by Bob Martin (of object oriented and Java fame) than developers in other languages?
And it's not even entirely true. You can see that the top ten depended upon packages [1] in npm are the opposite of "literally do one thing". They are either full blown libraries like React or collections of related functions. I'm not claiming npm does not have a problem with too many one liner functions. But the most popular packages do avoid this practice, which is encouraging, and sets the bar for what you should do if you want to be at the top.
What other motivations could there be for being the author of many very small and popular npm packages when it comes to interviews and internet fame? There are probably a lot more reasonable answers than "influenced by Bob Martin".
[1] https://www.npmjs.com/browse/depended https://www.npmjs.com/browse/depended
- nojito 6y ago> But the most popular packages do avoid this practice, which is encouraging, and sets the bar for what you should do if you want to be at the top. https://www.npmjs.com/package/is-promise https://www.npmjs.com/package/is-promise 7 million downloads a week is not "popular" to you? npm is riddled with packages like these.
- tchaffee 6y ago> I'm not claiming npm does not have a problem with too many one liner functions. But the most popular packages do avoid this practice, which is encouraging, and sets the bar for what you should do if you want to be at the top. Just put my claim back in context, with an emphasis on the first sentence and you've got your answer.