News for hackers. Stuff that matters.
Re:Show HN: Auto install npm dependencies as you code by siddharthkp on Monday August 08, 2016 @02:02PM (#12249667)
That's interesting, tell me more?
Re:Show HN: Auto install npm dependencies as you code by pc86 on Monday August 08, 2016 @02:09PM (#12249715)
A typo should not start installing random software on my machine.
Re:Show HN: Auto install npm dependencies as you code by dividuum on Monday August 08, 2016 @02:31PM (#12249868)
In any application with a lifecycle longer than your average "TodoMVC example" dependencies become a liability: You have to make or be sure than they are going to be around and still compatible with your current and future code. If you blindly add dependencies this problem gets more complicated.
Re:Show HN: Auto install npm dependencies as you code by tomc1985 on Monday August 08, 2016 @08:26PM (#12251740)
As the other comments here have alluded,

a) a typo can run unintended code on your box

b) a bad/old/hacked project (correctly typed) can run unintended code on your box

c) both of the above conditions are considerably more severe because they can be triggered with near-zero friction (unlike a gemfile, which are manually pulled-down and code is run from a separate command. Gemfile results are also generally small enough (1-2 pages) that one can visually spot typos if you are monitoring the output

d) complex dependency systems can often turn into dependency hell

e) (IMHO) instantly-available dependencies potentially reduce a given programmer's likelihood to attempt to solve their problems with the language itself (i.e. don't use Cassandra when a Dictionary will do) ... the nodejs community seems especially susceptible to this

That's all I can think of right now...

Re:Show HN: Auto install npm dependencies as you code by dack on Monday August 08, 2016 @02:12PM (#12249737)
I could be wrong, but I think he might mean that people should take care not to add too many dependencies to their project - if it's too easy, then it might result in unnecessary dependencies and brittle code.

However, I'm not sure I agree with the statement - you could use this tool and still have the discipline not to pull in random packages.

Re:Show HN: Auto install npm dependencies as you code by dozzie on Monday August 08, 2016 @03:04PM (#12250099)
The idea is that people in general go down the currently-easier way, which is "add the dependency", leading to microdependencies and left-pad idiocy in npm case.

If there is a friction, the balance is changed a little against pulling dependencies, at least those most trivial.

Re:Show HN: Auto install npm dependencies as you code by tomc1985 on Wednesday August 10, 2016 @05:53PM (#12264988)
This!