Embracing DSLs in UI Development: Why Learning Slint Isn’t Harder Than Mastering an API #5735
Replies: 5 comments 4 replies
-
Interesting read! (there is a closing "}" missing in the first Code block I think?) |
Beta Was this translation helpful? Give feedback.
-
The AI image looks very off |
Beta Was this translation helpful? Give feedback.
-
For me the only thing that holds me back using DSLs is that I cannot "look at the source" as easily as I can with an (open) api. So if I am not sure whether something I wrote will do the thing I want - depending on how the DSL, documentation, lsp etc. is done - I cannot look deeper into it. But if it is done well and there is small to noen ambiguity a DSL is a very nice thing indeed for all the nice reasons you already mentioned in the blog post. |
Beta Was this translation helpful? Give feedback.
-
An option to write components/widgets in Rust (API) would offer a choice to use the preferred direction and you can look under the hood to know what happens. Kotlin Compose Multiplatform uses KotlinLang (no DSL) for compositon of the Render-Tree. IMO it is an declarative style in KotlinLang of functions annotated with "@Composeable". https://medium.com/@itsuki.enjoy/android-kotlin-jetpack-compose-dropdown-selectable-list-menu-b7ad86ba6a5a |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Discussion thread for the blog post https://slint.dev/blog/domain-specific-language-vs-imperative-for-ui
Beta Was this translation helpful? Give feedback.
All reactions