News for hackers. Stuff that matters.
Re:Electron 4.0.0 by com2kid on Friday December 21, 2018 @01:10PM (#18735195)
> Why is it that people seem to think using a cross-platform UI toolkit like tkinter, kivy, WxWindows, etc. is like putting their hand in a toilet?

For me?

Because every API I access returns JSON, and because half those API have a JS package sitting somewhere in NPM.

Bonus, a large % also have typescript definition files laying around.

So my choice is either:

1. Deal with JSON in native, and create my own wrappers for every API out there, because next to no one publishes C/C++ libraries anymore.

2. Give in to the JS behemoth.

tl;dr ecosystem.

Re:Electron 4.0.0 by zozbot123 on Friday December 21, 2018 @02:09PM (#18735684)
> Deal with JSON in native

You have to parse it anyway, and in either case (native or JS) you'll be using a pre-built facility for that. Plenty of "native" languages can have good JSON support these days, and the "create a wrapper for the API" part is trivial if there's one available already, even if it's JS.

Re:Electron 4.0.0 by com2kid on Friday December 21, 2018 @02:39PM (#18735915)
> You have to parse it anyway

In JS you can just access the fields. With a lot of APIs just being HTTP endpoints, call fetch, get JSON, see if you like how it works.

Move over to a better NPM library that wraps it later on if so desired.

But for prototyping stuff, JSON+JS is stupid fast. JSON store DBs suck for a lot of reasons, but getting something working in them is incredibly easy.

Getting that something to "real product" is probably end to end more work than if a better tech stack was chosen. You win some and you lose some!

Re:Electron 4.0.0 by pseudalopex on Friday December 21, 2018 @04:49PM (#18736995)
Python also has lots of libraries. You can use Qt with JavaScript.