About Electron

The only good thing about Electron is that it allows you to fuck over OS UI designers while supporting every input device Chrome supports without building bicycles on SDL/SFML/whatever you're using. Qt/GTK are way fucking restricted to the ancient Windows 95 paradigm and doesn't allow you to make a button look like a link/checkbox look like a switch.

Attached: Untitled.png (1200x630 16.51 KB, 82.31K)

Other urls found in this thread:

github.com/vurtun/nuklear
proton-native.js.org.
doc.qt.io/qt-5/qmlapplications.html
twitter.com/SFWRedditImages

Why would you want to such a horrible thing?

because I wanted to provide an example on how Qt's styling is limited.

You are so preoccupied with whether you could, you didn't stop to think if you should.

yes, electron is a piece of shit
that would be a good thing. unfortunately, they are indeed not fucked over and continue to spread their filth
what

This is literally everything wrong with modern UI design.

Someone please tell me what was so wrong about simple websites where there were no animations or GIANT VIDEOS AND POPUPS showing up without your permission or desire or where performance was pretty good and not complete ass because muh animations?

Literally the only good thing about the nu-web is having HTML5 video. It may suck sometimes, but it's one hell of a lot better than being stuck with Adobe Flash for video content. Everything else is aids.

Halfchan was started back in like 2003. Did that even use Javascript back then? If it did, it was probably a very small amount and nowhere near (((Web 2.0))) levels.

Pretty sure 2chan/4chan was just a simple CGI.

Everyone thinks Election is attractive because people know javascript and don't want to learn anything else. The reality is that Qt and every other big cross platform GUI toolkits is its own special hell and Electron is so much easier to use at every step of development. GUIs were a mistake and so was everything that came after. Choke on the fruit of that tree. The world is a fuck.

I'm not sure why there's so much hate for it tbh. Why would you want to write a separate program for each platform when you can just use electron. The only one autistic enough to care about the bundled web view is you ironically enough, any end user of your program will probably never even be aware of it.

TUIs were the actual mistake.

Attached: command-line.webm (640x360, 1.25M)

A line that you enter commands. That's how close Terrys idea is to whatever nigger monkey cli you are jerking off to.

they will when their machine grinds to a full stop because your garbage app consumed all available ram on the machine which is what inevitably happens with all electron apps.


Swing is the only good cross platform gui lib to ever exist.

That's not true though. VS code has no such problem and it's the quintessential bloated electron app.

While on the topic of GUI libraries, what is the best choice if I want something nice looking without having to set up a huge development environment? I want to make a simple UI around a C library, something that's as retardedly simple as "drag a file into this rectangle". I looked into Qt, but every tutorial makes it look like you have to use their graphical IDE.


Java shit

There's nuklear which is specifically for GUI (no window system/render backend/input). I haven't used it but it looks ok.
github.com/vurtun/nuklear

I give it 2 years before the complexity starts to pile on and it turns to shit


Funny thing is, if your library was written in Java shit it would be the most trivial thing to wrap some Swing around it, but you like to suffer so...

Why would complexity pile on? Any additional complexity would be in the addons. I've got nearly 100 installed and there's no memory leakage. It uses around 120 mb of RAM.

You got a fair point, I suppose same can be said about serving a JS webUI on localhost. Incidentally, both provide an easy way of doing clouds - and before anyone starts foaming at the mouth, think a beefy program running in a big server in your closet which you access from a thin client on your phone or weak laptop.

Problem with electron is that it's like when they say the cure is worse than the disease. It's slow, bloated, and the ease of use attracts shit devs who amplify those flaws tenfold. But then again, slow and working is still better than not slow and doesn't work.


No, he's right on this one and it's you who is too preoccupied with whether he should, to recognize why it's a shortcoming that you can't say he could. By way of analogy, if a poor craftsman blames his tools, what does a poor toolmaker say of the craftsman?

The point of a UI framework is to make it as easy as possible for people to create whatever UI people have thought up in their head. A UI framework is not a pedagogical tool. There are absolutely bad ways of doing UI, and people should definitely be taught to avoid them, but the UI framework is not the right medium for doing so, just as your car is not the right medium for teaching you to not drive drunk or speed (although perhaps you are a fan of breathalyzer keys and speed limiters, I don't know).

For a UI framework, more customization is generally a good thing because the #1 thing people want with UI elements is to customize them. Moreover, it's very useful, because a lot of people hate UI and are only doing it out of necessity, so you have even more users than usual that don't understand a lot of your framework and are just trying to get by with what little they know. If a person only knows buttons and would much rather not learn about links now, a frankenlink made from a button is, bad though it may be, still a way to get them to do what they want and it's still better than nothing. Kind of ironic that UI is supposedly the classic, perfect OOP problem, but actually it's a very duck typy thing. From the use's perspective, it doesn't matter whether it's actually a link or a button or an image with an onclick handler or whatever the fuck under the hood, it only matters what it looks like and what it does. And then there's the usual problems like diamond inheritance or circle-ellipse.

...

baste

Not an argument.

Looks like the UI to a video game.

So how do game UIs work anyway? Do they usually hack something basic and ad hoc? Or do they write a whole UI framework just for the game? Or is it common to use frameworks specifically made for game UI?

lots of games use javascript for their UI

Depends on the game and the scope. Nuklear is popular for debugging or having a quick and easy UI for editing. I've always written my UI code from scratch for my games and tools because I usually only need a very narrow subset of what an entire framework offers.

GUIs are awesome when they can tell the user what the program is going to do

for example Battlefield 1 uses React + TypeScript + Mobx

It's VS Code, the nephew of Visual Studio and son of GitHub's Atom. It doesn't lag on pisspoor Intel Pentium B950 (suck that Android Studio) and it has rich language support for every popular/semi-popular language (I'm looking at you, Visual Studio). So it's the best code editor that you can use with mouse. Also it uses pure DOM (except their actual editor, Monaco, which AFAICT also uses DOM), so that's why it doesn't lag.

True, in the era of 100 GB video games nobody cares if the messaging app weights 100 MB

Also, while you're all in this thread, take a look at this: proton-native.js.org. It's a JavaScript framework which allows one to create JavaScript apps with native UIs.

Wait, does that mean that every copy of the game effectively bundles and entire web browser in it?

doc.qt.io/qt-5/qmlapplications.html

Qt is better than Electron in every way. It is also cross-platform, but doesn't require chromium to render applications.

QML doesn't use the React.js paradigm so it's not for me. Also AFAIK you could only style it when you get deep down in Qt/use Qt Quick Controls. But it's nice and still fucks over OS UI designers.

First, they don't use an entire browser but rather it's subset which is good enough to output an image, react to input, and do JavaScript.
Second, yes. Using hotkeys is hard for me and I can't remember them, so I use a keyboard to type/call some functions, but I use a mouse to click on code I want to change.

HAPAS ARE SUPERIOR TO WHITES

HAPAS ARE SUPERIOR TO WHITES

HAPAS ARE SUPERIOR TO WHITES

HAPAS ARE SUPERIOR TO WHITES

HAPAS ARE SUPERIOR TO WHITES

HAPAS ARE SUPERIOR TO WHITES

HAPAS ARE SUPERIOR TO WHITES

HAPAS ARE SUPERIOR TO WHITES

HAPAS ARE SUPERIOR TO WHITES

...

Good idea user, but don't you think that idea is a bit too Jewish?

Yeah, fuck off boomer. Nobody cares.

Masons, Masons everywhere.

Kike mods are trying to get TOR banned. Don't let them get away with it!