Your thesis is ambiguous. Simple is an overloaded term that means different things for different people and projects. If I'm writing a one-off tool that will be used and thrown away, for me "simple" means whatever is faster to write (i.e. glob or flast-glob). If I'm going to write that code many times for different types of file patterns, at some point I will be generalizing it so much that I will end up creating yet another version of glob, so using the original glob is simpler too.
In general, I believe that each dependency has to support its own weight in any project that will be maintained, so there are indeed cases in which writing the code yourself is strictly better than using a dependency, but I suspect it's not as common as you make it seem in this post.
I can definitely see how "keep it simple" can be interpreted as ambiguous. What I *meant* to say is that; if you don't need the bells and whistles a third-party package offers, it's sometimes best, if applicable, to write your own. Thanks for your comment!
Comment
Your thesis is ambiguous. Simple is an overloaded term that means different things for different people and projects. If I'm writing a one-off tool that will be used and thrown away, for me "simple" means whatever is faster to write (i.e. glob or flast-glob). If I'm going to write that code many times for different types of file patterns, at some point I will be generalizing it so much that I will end up creating yet another version of glob, so using the original glob is simpler too.
In general, I believe that each dependency has to support its own weight in any project that will be maintained, so there are indeed cases in which writing the code yourself is strictly better than using a dependency, but I suspect it's not as common as you make it seem in this post.
Replies
I can definitely see how "keep it simple" can be interpreted as ambiguous.
What I *meant* to say is that; if you don't need the bells and whistles a third-party package offers, it's sometimes best, if applicable, to write your own.
Thanks for your comment!