Details
Code
-
Checkout with GitHub CLI
Work fast with our official CLI. Learn more.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
remove 'nice-try' dependency #102
Conversation
Details
Sorry, something went wrong.
|
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. |
Details
Sorry, something went wrong.
|
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. |
Details
Sorry, something went wrong.
|
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-spawnis a dependency of 2431 packages, including highly popular packageseslintorwebpack-cli.This means that the package itself should reduce its own dependencies to the bare minimum.
The
nice-trypackage 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-tryfound 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.