742 posts
  • Weekly Top Seller
  • Freebie
  • Elite Author
  • Most Wanted Winner
+9 more

Hi Everyone,

Just planning on studying javascript framework. Which of the two do you recommend the most? Thanks

Cheers, phpbits

789 posts Magento Elite & Gravity Maker
  • Elite Author
  • Author Level 8
  • United States
  • 7 Years of Membership
+4 more
60 posts
  • Trendsetter
  • Exclusive Author
  • 5 Years of Membership
  • Affiliate Level 4
+3 more

You can check a sample app written in many popular frameworks here http://todomvc.com/ https://github.com/tastejs/todomvc/tree/gh-pages/architecture-examples and decide based on code, backbone is the most common and mostly used with http://marionettejs.com/ or http://chaplinjs.org/ but pretty old.

Angular approach seems pretty messy for me, having all the bindings and stuff in html attributes makes thing hard to maintain having to go forth and back between code and attributes on the other hand underscore template engine used in backbone and clones messes html as well by polluting them with brackets.

Most js frameworks do a good job on separating stuff and are useful in very big apps but all fail on the view part making it hard to maintain, is beyond me why having the power of DOM they treat the view as a string like on server side.

Also depending on the complexity of your app and how big it is, a js framework maybe overkill, there is the learning curve, many things that will bloat and increase your code only to respect the framework conventions etc after studying all the examples in there I liked the jQuery example the most, minimum organization to keep things maintainable and let’s your app evolve in it’s own way.