4 ms·
While I welcome new cross-platform GUI Frameworks, I wonder why not use a declarative UI similar to QML? Even Slint[1] (which is built in Rust) uses such syntax
by rubymamis 2y ago
While I welcome new cross-platform GUI Frameworks, I wonder why not use a declarative UI similar to QML? Even Slint[1] (which is built in Rust) uses such syntax for its UI.
[1] https://slint.dev https://slint.dev
- igortg 2y agoI second that. I used Dash for a while. Although it's nice to have everything wired up for free, the code quickly becomes a mess as soon as you try some more complex things (or you put everything in one function and got a big super nested structure, or you build a lot of small components and quickly get lost in a sea of small functions). I'd rather build the HTML myself. [1]: https://dash.plotly.com/ https://dash.plotly.com/
- CyberDildonics 2y agoIt isn't really that important to have a declarative UI, making the UI is rarely the time consuming or difficult part of making a program. An extra markup language for a UI adds bloat and ambiguity. Now you're learning a different ad hoc language and trying to get around its quirks just to be able to feed in data that could have been done directly with functions.
- jamwil 2y agoGosh I feel like making the UI is always time consuming, but that might just be because I find it repetitive and boring, and thus perceive the work as taking longer. I could die a happy man never imperatively constructing nested QBoxLayouts again.
- CyberDildonics 2y agoIs that because it's actually difficult or because iterations take a long time from obnoxious compilation times?
- jamwil 2y agoEh Qt isn’t really difficult, just not my idea of fun. I use the python bindings so compilation time isn’t a thing.
- CyberDildonics 2y agoEh gosh if you're using PyQt already, why would a different markup language to create the GUI help? Are you even using QML? That is the context of this thread.
- jamwil 2y agoI was only responding to the general statement that making the UI is not the time consuming part of app development.