2 ms·
Hi my name is node_modules have you met me? If you invite me to a party I bring my 500 closest friends as my plus one! I just looked at the node_modules folder
by michaelmrose 7y ago
Hi my name is node_modules have you met me? If you invite me to a party I bring my 500 closest friends as my plus one!
I just looked at the node_modules folder for a project that runs user configured code when your imap server gets a new mail via imap idle. It's called imapnotify and inside its node_modules dir I see it pulls in 549 js files.
The majority are under 100 lines per file dozens are between 1 and 30.
Cutting just the last segment so that /foo/bar/baz.js and /bam/baz.js both appear as baz.js and removing dupes reduced the number of unique filenames to 383.
Basically every js dev is either telling you or not telling you that they don't know what they are giving you to run on your computer.
- catalogia 7y agoThere are reasons forums known for being less diplomatic than HN often take delight in heaping scorn and ridicule on js devs. This is one of those reasons.
- JohnFen 7y ago> If you invite me to a party I bring my 500 closest friends as my plus one! That sort of thing is a big red flag that perhaps you should reconsider using that package. But even if you do use it, that in no way reduces the fact that it's your responsibility to know what you're shipping.
- michaelmrose 7y agoThat is every javascript package ever incidentally. Do you have an alternative suggestion as far as connecting to an imap server and responding to events? Not a library to write such a thing but an actual implementation.
- JohnFen 7y agoNo, I don't, but even if there are no such alternate packages, that doesn't mean it's OK to use one that you can't sufficiently understand. If you can't find an acceptable package, then I'd absolutely recommend writing that functionality yourself. connecting to an IMAP server and responding to events aren't complicated tasks, after all.
- michaelmrose 7y agoThis is entirely feasible but what percentage of people can write replacements for problematic tools and what tools can they afford to replace time?
- JohnFen 7y agoAmong software engineers? I would expect (hope?) that the percentage that could do this approaches 100.
- michaelmrose 7y agoHow much extra time do you have to reimpliment things that work because you disagree with how they are written?
- JohnFen 7y agoYou misunderstand what I'm saying. This isn't about disagreeing with how anything is written, this is about the responsibility of developers to know what they're shipping. If devs can't do things like be able to tell what dependencies a module/library has, then they shouldn't use that module/library.