3 ms·
A powerful programming language here could be assembly or Lisp--that hardly makes it a good tool to use to do the things we expect for making user interfaces.
by angersock 14y ago
A powerful programming language here could be assembly or Lisp--that hardly makes it a good tool to use to do the things we expect for making user interfaces.
Simple declarative DSLs (such as CSS) are head-and-shoulders above a general-purpose programming language, especially in a situation where logic is not really needed or required. CSS, fugly though it can be, very neatly and thoroughly solves the issue of "How do I style this content?" without adding the complexity of a programming language.
Not all things want to be programmable and flexible.
- mcartyem 14y agoYou'll be surprised how often logic is needed. Can you automatically compute pixels or colors with CSS based on values of other elements in CSS? Or combined with values coming from a user's preferences? Seemingly trivial logic can reduce presentation complexity enormously. With a powerful programming language you have a better grip over the complexity than you do with CSS.