by DigitalJack · 9y ago · 0 comments
I don't know what it is about GUI programming, but I pretty much hate it. It's a complete schlep for me... it seems to take so much energy and work for something that is tangential.
If I had to go through the same level of effort to print something to the console, I'd never program anything.
From hand coded Win32 C++ GUIs to Tcl to Swing to Interface Builder/Storyboards, AngularJS and Bootstrap, I've had to use it all and have managed to turn all those things into giant writhing masses of spaghetti code every time.
i've seen many backend dev calling themselves code heroes falling apart after a few days spent trying to design an android interface. it's a great humility lesson.
Every GUI of any significant complexity I've ever created ended up needing (if not having) an explicit state machine to work reliably.
Both add a fair bit of complication in the short term but reduce it when the app gets bigger. Neither seems to suffer from the performance/correctness trade off that other methods (like forcing every minor change to redraw the UI) often have.
Of course, you become bound to a specific platform (I've been meaning to give GNUstep a try, not sure how good it is).
Expect not so good Objective-C support for anything later than 2.0 and API support at best around Panther timeframe.
Yeah you still have to work with HTML and CSS but it abstracts away DOM manipulation without introducing too much overhead. Use it with Bootstrap, or even materialize for a more opinionated but batteries-included CSS experience.
Personally, I tried and hated Angular because it tried to control everything I did. Vue says "make your application however you like, let us handle the view layer and that's it."
It is by far the best GUI library/setup i have used by a large margin. It really makes everything else seem completely shit.
Re-Frame: https://github.com/Day8/re-frame Reagent: https://reagent-project.github.io/