News for hackers. Stuff that matters.
Re:Electron apps cannot be submitted to the Apple store by michaelmrose on Sunday November 03, 2019 @11:20PM (#21439012)
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.

Re:Electron apps cannot be submitted to the Apple store by catalogia on Monday November 04, 2019 @04:01AM (#21439964)
There 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.
Re:Electron apps cannot be submitted to the Apple store by JohnFen on Monday November 04, 2019 @12:32PM (#21443987)
> 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.

Re:Electron apps cannot be submitted to the Apple store by michaelmrose on Monday November 04, 2019 @12:55PM (#21444281)
That 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.
Re:Electron apps cannot be submitted to the Apple store by JohnFen on Monday November 04, 2019 @01:11PM (#21444489)
No, 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.

Re:Electron apps cannot be submitted to the Apple store by michaelmrose on Monday November 04, 2019 @02:11PM (#21445235)
This is entirely feasible but what percentage of people can write replacements for problematic tools and what tools can they afford to replace time?
Re:Electron apps cannot be submitted to the Apple store by JohnFen on Monday November 04, 2019 @03:37PM (#21446228)
Among software engineers? I would expect (hope?) that the percentage that could do this approaches 100.
Re:Electron apps cannot be submitted to the Apple store by michaelmrose on Tuesday November 05, 2019 @04:14AM (#21450847)
How much extra time do you have to reimpliment things that work because you disagree with how they are written?
Re:Electron apps cannot be submitted to the Apple store by JohnFen on Tuesday November 05, 2019 @11:11AM (#21453632)
You 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.