2 ms·
DSLs are not inherently more difficult to learn than API and conventions of a complex GUI library. DSL offer benefits in terms of expressiveness and conciseness
by ogoffart 3y ago
DSLs are not inherently more difficult to learn than API and conventions of a complex GUI library. DSL offer benefits in terms of expressiveness and conciseness. The focus in UI programming is on rapid iteration and immediate results, which can be facilitated by a live preview in the IDE made possible by a declarative DSL
- CyberDildonics 3y agoDSLs are not inherently more difficult to learn than API and conventions of a complex GUI library In theory maybe, in practice the indirection and extra layer of syntax, error handling, documentation and edge cases mean this is not true. Also this is an assertion without any evidence. DSL offer benefits in terms of expressiveness and conciseness. Prove it. The focus in UI programming is on rapid iteration and immediate results I have never thought that setting up values through functions was not rapid. It has never been a bottleneck or time sink when making a GUI. Unfortunately, using custom markup languages that don't work like they say they should has been a time sink. which can be facilitated by a live preview in the IDE made possible by a declarative DSL My experience is that this is very minor in terms of overall utility and doesn't actually require a custom markup language.