4 ms·
Yeah. The sad thing is so many web devs have never written a desktop app of any kind, so have no idea how painful the web really is. I loved Delphi in the 90's.
by mike_hearn 11y ago
Yeah. The sad thing is so many web devs have never written a desktop app of any kind, so have no idea how painful the web really is. I loved Delphi in the 90's. That said, modern tools have far surpassed it.
If you want a C#+WPF type experience that's also open source and cross platform, check out Kotlin and JavaFX. JFX is the new third gen (post-Swing) GUI toolkit in Java and it's quite impressive. It's scene graph structured like WPF, has data binding, but also pays close attention to visuals: you can style it with a dialect of CSS, everything is 3D accelerated via D3D or OpenGL, you can do shader based effects on any part of the UI, etc. It has all the usual layout management and business components but also can do things like embedded h264 videos, 3D objects, and there's a tightly integrated embedded WebKit too if you need it.
Finally there's a tool that takes your app and spits out bundled/native packages for each platform, so the user doesn't ever have to know that the app was written in Java. No JRE or awful toolbars to install.
I've written a few apps this way and it's much more fun than writing a web app.
- aswanson 11y agoI tried JavaFX circa 2009 and it was scary; pure black magic in terms of what the same code would on a given day. I guess Oracle put some effort into it over the years, but never, ever again will I touch that language.
- pjmlp 11y agoModern JavaFX (Java 8) barely has any resemblance with the original JavaFX.
- mike_hearn 11y agoIt's not a custom language anymore. It's just a regular widget toolkit API like Swing. There is a thing called FXML which is a run of the mill XML based layout language, with a GUI designer called Scene Builder.
- jorgeleo 11y ago"The sad thing is so many web devs have never written a desktop app of any kind, so have no idea how painful the web really is." Agree fully. there are concepts that are fully mature in desktop applications, that the web has yet to come close.
- cmdkeen 11y agoAlternatively writing web apps using Knockout seems so much nicer than WinForms and INotifyPropertyChanged hell. Maybe WPF solves this, but I wouldn't want to go back.
- Pxtl 11y agoI was interviewing student devs recently and was flabbergasted how many of the kids doing greenfield personal projects were still using WinForms. It's frustrating how Visual Studio pushes them to work with this bone-headed warty out-of-date technology. These weren't old hands using somethign familiar just to get an MVP for a personal project, these were kids who didn't know any existing GUI frameworks and started using WinForms because it's the default in VS.
- jongalloway2 11y agoI agree. I'm asking around to see if we can get the default changed in Visual Studio.
- pjmlp 11y agoMeanwhile I am doing a greenfield project in WinForms, because it needs to be integrated into an existing eco-system of applications and components built around WinForms.
- Pxtl 11y agoI don't think we'd call it greenfield, then, if you're constrained by tech you need to interact with.
- ww520 11y agoThis is the second recommendation I've heard recently for JavaFX. I will check it out to see what it is about.
- Namrog84 11y agoWhat's the name of this tool that spits out the thing per platform?
- mike_hearn 11y agojavapackager. It comes with JDK8+. It can make signed DMGs on MacOS, EXE/MSI packages on Windows, DEBs/RPMs/tarballs on Linux etc. They don't have any Java branding. Here's an example of how to use it: https://github.com/vinumeris/lighthouse/blob/lighthouse/mac-package.sh#L22 https://github.com/vinumeris/lighthouse/blob/lighthouse/mac-... The catch is you need the platform to make packages for the platform. It can't make Mac DMGs from Windows, for instance. I have a Mac laptop with Parallels so I can make packages for all three major platforms. To stay on the .NET topic, this is the closest the JVM world currently has to something like .NET Native, I guess, although of course, there is no native code involved .... it just looks that way to the end user. I guess when .NET matures as a cross platform solution they will need a similar tool, as other platforms don't have the runtime installed by default.
- pjmlp 11y agoMost commercial JVMs do have native compilation, .NET Native style though.