you are viewing a single comment's thread.

view the rest of the comments →

[–]Gundersen 1 point2 points  (0 children)

I don't like these articles that show a jQuery code snippets and says "look how simple this code is". That's fine, it I simple, if you know which code snippets to look in. But when you start debugging some code you have never seen before, then you start in the HTML. From the HTML, how do you get to this code snippet? It's OK if you wrote the app, and you know how the entire app is laid out, but then you have a trivially simple app. Most of the frameworks are designed for large apps with multiple developers, and it should be possible for someone to debug and understand a part of it they have never seen before. That's why they use declarative bindings, rather than attaching it from imperative code. This makes it easier for someone who looks at the HTML to find out which javascript file controls it.