News for hackers. Stuff that matters.
Re:Electron 7.0 by mangosherbet on Thursday October 24, 2019 @01:43PM (#21347114)
Is there a good introduction to starting development with Electron as someone who is a C++ developer? I find web development quite difficult to grok in general; lots of frameworks and technologies.
Re:Electron 7.0 by crispinb on Thursday October 24, 2019 @03:56PM (#21348551)
Quelle horreur - clearly web tech is the future of UI, and electron is a reasonable choice until a better solution comes along, but the ecosystem is a foul mess for developers. `npm [anything]` fills your hard drive with an astronomical tangle of hideous code. And there's webpack. You will end up wanting to strangle yourself. Avoid unless you really need it.
Re:Electron 7.0 by alyandon on Thursday October 24, 2019 @06:58PM (#21350047)
I'm normally a backend developer but I was fooling around with using vue.js + jquery to build a simple SPA without the typical process of npm install <entire world>.

When it came time to finally bundle my app into a single html + js file I settled on (well was forced to really) npm install rollup. After installing rollup, I had a package-lock.json file that was 1880 lines long with approximately 150 or so dependencies and a node_modules directory so huge that vscode choked trying to parse everything in it. To its credit, vscode asked me if I wanted to exclude node_modules from future consideration.

All that from installing a single tool via npm. I just don't get modern web development.

Re:Electron 7.0 by crooked-v on Thursday October 24, 2019 @03:00PM (#21348006)
Check out create-react-app: https://github.com/facebook/create-react-app

It sets up a 'modern' React-based web dev environment that can be used to immediately start experimenting with stuff. React acts as a view layer, so you can write views and components in HTML-ish declarative syntax while still getting live updates whenever data changes.

Past that, it's common for people to add Redux or MobX, which both act as global data stores with good integration with React, and have lots of secondary libraries for transparently handling data persistence.

Re:Electron 7.0 by pjmlp on Friday October 25, 2019 @02:16AM (#21352382)
As C++ developer you are better served with Qt and QML.