-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove 'nice-try' dependency #102
remove 'nice-try' dependency #102
Conversation
Hello! The dependency is small and yes, the installation might be a little bit slower (~100ms slower?). I see a lot of developers doing what you just did but it goes against my ideals of code-reuse and dependency management. Thanks for the PR though. |
Hi @satazor, I recommend reading about left-pad fiasco: I'm all for code usability whenever it makes sense. I just don't this this qualifies for this :) |
I have already read it. I’m sorry but I don’t really have time do discuss this subject nor I have the energy. |
I very much appreciate all the work you put in the package, you really deserve that. The company I work for relies on your code and I spotted this unnecessary dependency that must sit in our system. Not sure where is this "I don't want to discuss this" coming from... but it's your package and it's totally up to you. I just came with a friendly advice. |
I didn't want to be rude but I was being sincere. The whole subject is controversial and, in the end, it's a personal preference and developers' ideals. I'm in a tight timeline and I really need all the time I can have. Having the said, I don't have time to write a detailed answer of why I think it's wrong to "inline" dependencies. Again, thanks for taking the time to do this PR and trying to engage in a conversation where you justified your arguments. But, unfortunately, I don't have the time to justify mine. |
If you're so busy that you can't explain your decision to not inline a single function, why are you writing over 100 words to explain how busy you are? |
This isn't code reuse, this is code fragmentation. One line functions don't help you reuse anything. The function itself is an awful idea, as you should be handling errors instead of throwing them away, but putting in another dependency for a one line function isn't reusing code. |
Besides not agreeing with "inlining" the dependency, this PR delivers low impact changes. This has escalated quickly and, as such, I'm going to lock down the thread. |
node-cross-spawn
is a dependency of 2431 packages, including highly popular packageseslint
orwebpack-cli
.This means that the package itself should reduce its own dependencies to the bare minimum.
The
nice-try
package does nothing but swallowing the error of the invoked function.It should never be considered as an external dependency - it is too brittle.
Now,
nice-try
found its way to be included in most of the projects that use eslint or webpack which is totally unnecessary.Hence, I propose to remove the dependency.