Hacker News new | ask | show | jobs
by rohitv 4630 days ago
Would you mind clarifying on how AngularJS is better than BackboneJS when it comes to having testable & manageable code? I am currently working setting up a unit testing environment with BackboneJS, it seems to be working well. What major differences exist when you test the two?
1 comments

  1. DI.
  2. Clear separation of concerns.
I believe that writing testable Javascript has been possible since the name Javascript was invented. Angular.js has made it easier by doing its best to force you to write testable code.
you can use DI in backbone and clearly seperate your concerns as well. It is just not as much enforced in the framework (not opinionated)
So you agree with me.