2 ms·
Electron "runs like a dog" because Electron development is what you get when you let the dominant culture associated with NPM-and-GitHub-driven consensus take o
by cxr 5y ago
Electron "runs like a dog" because Electron development is what you get when you let the dominant culture associated with NPM-and-GitHub-driven consensus take over. It's a culture that not just tolerates bad development practices but outright encourages them while discouraging good ones. (Hell, the majority of Electron/NodeJS programs are written in a style that struggles against the language and the bindings exposed by the host environment.)
If most Electron and NodeJS programmers wrote code the way that they'd be forced to write the same program in Java, or if they wrote code like the JS that was checked into the Mozilla source tree for Firefox's UI 15 years ago to run on sub-GHz machines (or that was powering Netscape's UI 5 years before that), then the impression that JS is "slow" relative to Java wouldn't exist. There is no shortage of abominable enterprise software of yesteryear written by mediocre Java programmers. It's just that their currentgen counterparts are mediocre programmers working with React/Electron/NodeJS instead.