3 ms·
Because it provides I nice separation between the "static" parts of a program, the UI, and the dynamic parts, the data. The first demo of this on the other han
by flukus 10y ago
Because it provides I nice separation between the "static" parts of a program, the UI, and the dynamic parts, the data.
The first demo of this on the other hand, has html embedded in javascript strings. A program of any complexity written like this would quickly turn into a big ball of mud.
- Kinnard 10y agoI'm somewhat skeptical of this separation of concerns
- flukus 10y agoI'd encourage you to try it out: http://jsfiddle.net/rniemeyer/LkqTU/ http://jsfiddle.net/rniemeyer/LkqTU/
- iamleppert 10y agoIt's possible to turn any codebase into a big ball of mud. Declarative languages are just a tool, like object oriented languages are. And arguably, if you choose a language based upon its ability to help you define what is "dynamic" vs. "static" you've made some mistakes.
- Kinnard 10y ago>"And arguably, if you choose a language based upon its ability to help you define what is "dynamic" vs. "static" you've made some mistakes." Please elaborate.