Live data from Hacker News

React Desktop – React UI Components for OS X El Capitan and Windows 10

github.com

41–50 of 74 posts

Re: React Desktop – React UI Components for OS X El Capitan and Windows 10

#41
post #20
post #4

Please forgive the simple question, but... Why does this exist? Is creating desktop programs out of HTML code really a good idea?

Because working with things like GTK and QT is horrible compared to working with HTML/JS/CSS, for anything other than trivial things. That said, it'd be cool to have native code generation from this though.

You clearly never programmed in Qt.

Re: React Desktop – React UI Components for OS X El Capitan and Windows 10

#42

Earlier quoted context omitted.

Because NodeJS is popular and desktop apps were getting small and efficient so we crammed a 30MB Chrome runtime in there.

Actually it's more like this: That ugly language called Javascript that everyone derided and said was "too shit and slow to ever write a Demo in" back in the 90s when all the "real developers" were writing server side scripts in Perl and left the frontend people to their own devices caught up with them. They kept pushing the boundaries, discovering things like XMLHttpRequest, and using that crap little language. Even…

They discovered a documented browser feature? Hooray for that.

Re: React Desktop – React UI Components for OS X El Capitan and Windows 10

#43
post #40

Man it's great to see effort being put into a platform-sensitive React component set. We've been working on React components for N1, and it'd be cool to swap them out for an open source set one day. The thing is, I'm not sure 100% native appearance is the way to go. I think Spotify nailed a cross-platform desktop experience using a UI that is distinctly non-native. For folks just learning about Electron / web-based d…

Didn't we go round this with Java? Round 1: AWT. Uses the native widgets. Therefore the layout is slightly different on different platforms. Round 2: Swing. Cross-platform identical, and therefore looks nothing like native apps. You could 'skin' it, at which point it would look native but behave subtly differently. Round 3: SWT. Back to native widgets for Eclipse. Round 4: Everyone throws up their hands in despair an…

Not that I'm a big fan of Java, but it really feels like people threw Java under the bus only to reinvent it all in JavaScript.

Re: React Desktop – React UI Components for OS X El Capitan and Windows 10

#44
post #4

Please forgive the simple question, but... Why does this exist? Is creating desktop programs out of HTML code really a good idea?

Because NodeJS is popular and desktop apps were getting small and efficient so we crammed a 30MB Chrome runtime in there.

We also almost managed to let blind and other impaired people use their computers via OS-level accessibility settings and features so now we need to throw all that away :)

Re: React Desktop – React UI Components for OS X El Capitan and Windows 10

#45
post #22

Earlier quoted context omitted.

+1 With all respect to leichzeit0 comment, IMHO, JS is an ugly language, with way too many pitfalls [0]. Even big boys [1] use CoffeScript to transpile into JS. JS for cross platform desktop development may be an easy thing to manage, though it can become unusable and clunky super fast. You can spot JS desktop apps, just by the size of executable, which is at least 5-10 times bigger than you could expect (Spotify - 1…

I'm going to elaborate on your comment a bit because this infuriates me and I don't think people truly understand the reasons behind why web-apps-for-desktop generally suck and there's nothing you can do to fix it in yours. Background: I'm the lead dev/UX on LXQt, a linux desktop environment ( http://lxqt.org/ ). First one that comes to mind is accessibility and consistency of interactions. Apps that do not respect a…

This! I don't particularly care what technology people use to write apps, so long as it works well. As others in this thread have said, you can immediately spot a web-app-pretending-to-be-native because it doesn't work well.

QML appears to offer the best of both worlds - I don't understand why it isn't more popular?

Re: React Desktop – React UI Components for OS X El Capitan and Windows 10

#47
post #22

Earlier quoted context omitted.

+1 With all respect to leichzeit0 comment, IMHO, JS is an ugly language, with way too many pitfalls [0]. Even big boys [1] use CoffeScript to transpile into JS. JS for cross platform desktop development may be an easy thing to manage, though it can become unusable and clunky super fast. You can spot JS desktop apps, just by the size of executable, which is at least 5-10 times bigger than you could expect (Spotify - 1…

>> "JS is an ugly language" >> "riddled with complex JS" If you pick a technology by the aesthetics of the language, I'm pretty sure you'll make a bad decision no matter what. Not you like in you, but in principle. :) The code is clean if you write it well. Ugly code comes in all parentheses positions.

>> "JS is an ugly language"

What I meant:

> "JS is an ugly language, with way too many pitfalls."

IMHO it's ugly from 'within', just look at the JS truth table [1] and video I linked with the quote [2]. I just feel that I have no control of what I am doing with JS.

It's quite a paradox, that new people to programming, can get start quick with JS, though are not repelled how easily you can shoot yourself in the foot with it. But maybe they just do not catch the errors..

[1] https://dorey.github.io/JavaScript-Equality-Table/ [2] https://www.youtube.com/watch?v=20BySC_6HyY

Re: React Desktop – React UI Components for OS X El Capitan and Windows 10

#48
post #20

Earlier quoted context omitted.

Because working with things like GTK and QT is horrible compared to working with HTML/JS/CSS, for anything other than trivial things. That said, it'd be cool to have native code generation from this though.

Have you used Qt and QML? For me it's much more productive and straightforward than html/js/css. Delarative legible ui with built in dataflow/reactive properties. Performs straight out of the box without having figure out how to work with the mechanisms buried in this hugely complex and opaque machine called a browser. In fact its a relief to work with it. Could you say where you think its so 'horrible'.

Agreed. Assuming they took this to its full potential, and created native, cross-platform, desktop widgets for React, what they'd end up with would look startingly similar to QML, except without the easy C++ interop.

I'm a fan of React, but I have no desire to use it outside of the web, and maybe mobile (still on the fence there). For desktop, we have QT, which is truly an awesome native widget toolkit, with many thousands of man-years work in it, excellent cross-platform desktop coverage, along with pretty good accessibility standards.

Re: React Desktop – React UI Components for OS X El Capitan and Windows 10

#49

Earlier quoted context omitted.

I'm going to elaborate on your comment a bit because this infuriates me and I don't think people truly understand the reasons behind why web-apps-for-desktop generally suck and there's nothing you can do to fix it in yours. Background: I'm the lead dev/UX on LXQt, a linux desktop environment ( http://lxqt.org/ ). First one that comes to mind is accessibility and consistency of interactions. Apps that do not respect a…

This! I don't particularly care what technology people use to write apps, so long as it works well . As others in this thread have said, you can immediately spot a web-app-pretending-to-be-native because it doesn't work well . QML appears to offer the best of both worlds - I don't understand why it isn't more popular?

Qt's C++ heritage, I'd assume. That, and I really didn't like Qt Creator, when I last tried to play with it a few years ago. In addition, "package management" for libraries as per `npm` and it's ilk is a non-starter, though I believe there was something on HN attempting to fix that for Qt recently.

Re: React Desktop – React UI Components for OS X El Capitan and Windows 10

#50
post #40

Earlier quoted context omitted.

Didn't we go round this with Java? Round 1: AWT. Uses the native widgets. Therefore the layout is slightly different on different platforms. Round 2: Swing. Cross-platform identical, and therefore looks nothing like native apps. You could 'skin' it, at which point it would look native but behave subtly differently. Round 3: SWT. Back to native widgets for Eclipse. Round 4: Everyone throws up their hands in despair an…

Not that I'm a big fan of Java, but it really feels like people threw Java under the bus only to reinvent it all in JavaScript.

Java was captured by "Enterprise", lending it an air of radioactive uncoolness. So people are very reluctant to look at it and risk learning something from its successes and failures.
Post reply on HN