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

For SPAs I still use Backbone.js... Yes, I know, 2014 called and it wants its framework back. But... I like it. It's lightweight and doesn't impose any particular style or philosophy. It's well suited to small projects.

On the back end, for small projects, using a full-fledged framework is usually overkill. Writing a simple API that reads and write normalized data is quite trivial, and when one is writing everything it's easier to understand what's going on.

By this I mean that some behaviors come from the framework and can sometimes surprise you. For example, in Backbone, change events on the model are triggered not when an instance is updated, but only if the new version is different from the old. This makes sense, but the problem is that the comparison is only done on a shallow level. When updating deep properties, no change event is triggered. This took me some time to figure out.

Light frameworks have fewer unexpected behaviors, by virtue of being small.



My man! Another backbone.js user. It's so simple to standup an webapp with backbone I don't know why more people don't use it.


I tried backbone.js and couldn't get past white screen of death even after a few days of trying. Comparing that to Vue, it's just barbaric.


I love this. I used backbone in 2012/13 when everyone was all angularjs, it was a great project and I enjoyed the simplicity. I was intimately beaten into learning angular for the next gig

Edit: dates


Are you using backbone with Marionette? I used this back in 2010ish. Love the simple MVC pattern while separating HTML, CSS and Javascript.




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

Search: