5 ms·
See, I totally agree with this essay. But what are the alternatives? Getting started with Qt/GTK isn't nearly as easy, for example. Maybe someone should writ
by striking 10y ago
See, I totally agree with this essay.
But what are the alternatives? Getting started with Qt/GTK isn't nearly as easy, for example.
Maybe someone should write an intro to native GUI programming for JS devs.
- ld00d 10y agoWhat's wrong with JavaFX? I don't ever see it recommended, but a lot of us can do Java, and from my experience, it's way better than swing or awt.
- TeMPOraL 10y agoI'd say nothing. If you're working on JVM, it's the best choice.
- niftich 10y agoJavaFX is fairly decent, and I agree that it's more pleasant than Swing or AWT. It's a fairly good choice for places where you can mandate or ensure that Java will be present on the client (e.g. internal line-of-business apps), but also in places where you don't need to have some ancient version to support some ancient application instead -- which cuts down on the pool a bit. Unfortunately, most users know Java from years ago and never understood the difference between an applet or desktop application, and in the minds of some users it's still falsely stereotyped as slow or insecure. In most shops I know, Java is being extensively used on the back-end, but almost no custom Java apps with GUIs. Most shops (and people) who could do Java on the frontend have gone to learn Mono or WinForms or WPF instead, which gives you results that feel nicer to most users.
- antihero 10y agoPurely out of interest, because I might have used one without even realising it, but could you link some desktop applications written in Java that haven't been sluggish as hell or a bit broken feeling?
- ld00d 10y agoI don't know. I did a cursory google search and came up mostly empty-handed. LoadUI is supposedly JavaFX. It's such an outlier for UI/UX though.
- pkd 10y agoJEdit? Any IDE by IntelliJ? These are not JavaFX (its fairly new), but you asked for Java.
- antihero 10y agoIntelliJ is a good IDE, but it's UI is far from not-sluggish.
- baby 10y agoYou need to write it in Java? Which is the considered one of the worst language of the new generation.
- wotstowaway 10y agoGetting started with Qt is pretty easy I'd say, at least when you use Python and not C++: import sys from PyQt4 import QtGui def window(): app = QtGui.QApplication(sys.argv) w = QtGui.QWidget() b = QtGui.QLabel(w) b.setText("Hello World!") w.setGeometry(100,100,200,50) b.move(50,20) w.setWindowTitle(“PyQt”) w.show() sys.exit(app.exec_()) if __name__ == '__main__': window() In general I think Qt is one of the best-documented UI toolkits out there, and while it surely is complex it offers a lot of modern features and is able to produce pretty great UIs.
- witty_username 10y agoBTW, a nice PyQt feature is that you can set properties in the class initializer: b = QtGui.QLabel(w) b.setText("Hello World!") can be replaced with b = QtGui.QLabel(w, text = "Hello World!")
- jasonthevillain 10y agoSomeone should! I ran into this when teaching myself Swift last year. Learning a new language is easy. Learning the ecosystem, architecture, and some initial best practices is a sisyphean task.
- qwertyuiop924 10y agoTTK. It's got bindings in pretty much every language (because it's TK), but unlike plain-old TK, it doesn't look like absolute garbage, and instead takes on a vaguely native appearance on each platform.
- ta_donk_gt 10y agoLinks? Thanks.
- qwertyuiop924 10y agoThere are resources scattered around, but the best resource/tutorial I could find was tkdocs: http://www.tkdocs.com http://www.tkdocs.com