4 ms·
I'm a huge fan of both Backbone (I'd recommend using Marionette though) and jQuery, and I've spent the last 3 years building single page apps with both. The num
by onion2k 13y ago
I'm a huge fan of both Backbone (I'd recommend using Marionette though) and jQuery, and I've spent the last 3 years building single page apps with both. The number one thing that Backbone makes easier is testing - by abstracting your code away from the UI and in to encapsulated blocks of models and views you can write unit tests much, much more easily. When you start doing things with promises (and you will) you'll find it's so, so much better. Debugging a race condition between two jQuery events because something bubbled up further than it was supposed to is a full-on nightmare.
- anonyfox 13y agoYou may have a look into angular testing. Karma/Testacular is just awesome.