Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Backbone (though I want something lighter weight and w/o the jquery dependency), backbone-signal, Handlebars, browserify.

I have a single app model which uses a bunch of reactive signals and other registry data.

The great thing about browserify if it give you commonjs for the client side. commonjs takes care of the structure & naming of your domain logic. It also allows you to create fine-grained modules, which is wonderful for reuse & maintainability.

I wish there was a standalone Handlebars module which allows updates to the data, like what is done in Ember. I'm willing to use another template framework, which can be mimized, that supports data binding. React seems interesting.

I test with jasmine & jsdom. I tried phantom, but it's nice to be able to easily create test doubles as needed. I tend to perform black box (or functional) testing when possible, eschewing unit tests. I use jasmine-flow to test user flows.



backbone's only hard dependency is underscore, it's also the lightest library on this list by a solid margin


Spine is even lighter than Backbone. I like Spine because its functionality is not really tied to the DOM or jQuery -- I make native mobile apps with Spine on Titanium, for instance. Spine is built out of components (i.e. Model and Router), which can be used separately or in concert. It's a massively underappreciated framework that has had staying power.

Not to mention, stepping through (or trying to log) the endless anonymous functions created by underscore can be a hassle and straight crashes chrome/node inspector in some situations.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: