News for hackers. Stuff that matters.
Re:Electron 4.0.0 by fabiospampinato on Friday December 21, 2018 @11:29AM (#18734347)
I've made a few Electron apps, I don't use other cross-platform UI toolkits mainly for these reasons:

- I'm a JS/TS developer, with it I can make CLI apps, websites, Electron apps and mobile apps. This means I can also use the same set of UI widgets I'm familiar with across all platforms, I can't do that with any other native UI toolkit so far, maybe the situation will change with the advent of WebAssembly, but so far JS has basically been the only language capable of providing this.

- I don't think I've ever used a Java GUI app that didn't look like crap and wasn't a game, I've also never made a GUI app in Java, so this is just a guess, but maybe it's just easier to make prettier apps with web technologies.

Re:Electron 4.0.0 by AnIdiotOnTheNet on Friday December 21, 2018 @12:41PM (#18734926)
It's easier to make GUIs that suit the developers own tastes with web tech than with real toolkits. Whether or not that is a desirable quality in applications is a matter of debate.

Personally, I liked it back in the Win95 days when everything used the native toolkit and I could change its appearance significantly through a simple control panel [0]. Back then, if I wanted a "dark mode" I just adjusted colors to make things darker, but with modern GUI bullshit it's a newsworthy item when someone adds "dark mode" as a feature.

[0] http://toastytech.com/guis/win95schemes.png

Re:Electron 4.0.0 by fabiospampinato on Friday December 21, 2018 @12:56PM (#18735047)
If you've tried VS Code, is it of desirable quality to you? If not why?

Customizability-wise I actually prefer Electron apps to native ones, with a few lines of CSS I can remove stuff I don't need and tweak the UI a bit, I'm not quite sure you can do the same as easily for native apps.

Also you mentioned dark mode, an Electron app could support dark mode too, taking as an example macOS native apps they also have to explicitly support dark mode, so I'm not sure what you lose in this regard by non going native.

I would argue that going full-native win95 style has more downsides than benefits, for most people simply being able to change the wallpaper is enough.

Re:Electron 4.0.0 by AnIdiotOnTheNet on Friday December 21, 2018 @02:12PM (#18735714)
> Customizability-wise I actually prefer Electron apps to native ones, with a few lines of CSS I can remove stuff I don't need and tweak the UI a bit, I'm not quite sure you can do the same as easily for native apps.

That's a fair point. GUIs have tended towards being less customizable, not more, and that's a huge failure in my eyes. However, the customizability of Electron applications is really a side effect of the fact that it runs on top of a web browser. I find it difficult to count that as a point in its favor.

Looking at it from that perspective, there are native GUI systems that load XML files for their GUI that could also be called customizable by your standard.

Re:Electron 4.0.0 by pseudalopex on Friday December 21, 2018 @03:50PM (#18736525)
VS Code uses almost as much memory as a full IDE but does less. Sublime Text does almost as much as VS Code and uses much less memory, loads large files much faster, and opens new windows instantly. The last time I checked, VS Code didn't support Services on macOS or standard menu keyboard shortcuts on Linux.

Native apps use system colors by default. Electron apps tend to use static colors.

Re:Electron 4.0.0 by DenisM on Friday December 21, 2018 @11:58AM (#18734582)
How about Xamarin? It doesn’t give you a website, but it seems to cover the rest.
Re:Electron 4.0.0 by fabiospampinato on Friday December 21, 2018 @12:17PM (#18734721)
Well if I can't use the same UI components I spent years developing everywhere then this is a deal breaker for me.
Re:Electron 4.0.0 by DenisM on Friday December 21, 2018 @01:52PM (#18735559)
It's a bit of a circular argument: "I'm invested into using X therefore X is a good choice". This tells us nothing about the quality of X, although I'm sure it means the world to you personally.
Re:Electron 4.0.0 by fabiospampinato on Friday December 21, 2018 @01:59PM (#18735596)
That's why I said _for me_.

I've no idea how good Xamarin is at doing the things that it does, but even if I hadn't invested X into my web-based components Xamarin would still force me to reimplement them again in case I need them in my website. That's not cross-platform enough for me, Electron in better in this regard.

Re:Electron 4.0.0 by fabiospampinato on Friday December 21, 2018 @12:57PM (#18735060)
Why the downvote?
Re:Electron 4.0.0 by DenisM on Friday December 21, 2018 @01:55PM (#18735573)
Pay no attention to the spurious "background cosmic radiation" downvotes, it averages out over time anyway.