Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Chaplin, an Application Architecture based on Backbone.js (9elements.com)
53 points by molily on Feb 24, 2012 | hide | past | favorite | 9 comments


Very nice, really clean and well commented codebase. I love what you've done with the deferred and accumulator wrappers. Thanks for releasing this!


Why didn't you drop Backbone.js and write your own base-classes?


Backbone surely has good parts we were able to use right away: the event-driven concept in general (the Backbone.Events mixin), the Model with its attributes and change events, the View with its conventions (element reference, the Render pattern, free templating). Even if we couldn’t use all parts of Backbone it was a good idea to built upon the Backbone code and these common practices.

We dropped the Backbone.Router completely, but Backbone.History in turn is quite decent for HTML5 history and hashchange handling, so we’re relying on that.

Of course we could have borrowed only the code from Backbone we might need, but I think in the long run it’s a good idea to build upon an existing library or framework which is actively maintained, even if it doesn’t provide everything you might need at the moment. So writing all code ourselves wasn’t really an option for us.


This is exactly what I was waiting for. Awesome.


:O!!!


whooooooooooooooop!


nice name :)


nice


IMO one of the best attempts at a Javascript framework to date, look forward to giving it a go if it survives infancy.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: