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

As people are saying, the source is a great way to start.... Although I landed on many best practices through trial and error.

Marionette (http://marionettejs.com/) will maybe help you see its shortcomings (since it fills those gaps, although I don't personally use it).

Some pro tips:

* Figure out how sync works (when save() calls POST vs. PUT).

* Figure out how this.el works

* Learn the difference between router.navigate('/fun') and router.navigate('/fun', { trigger: true }).

* Learn the difference between url() and urlRoot(), and step through the backbone code with the chrome debugger as it determines a model's URL.

* Look at what delegateEvents() does.

* Learn about .listenTo() and how .remove() can alleviate view zombies.



thank you, I've ready Addy Osmani's book but I think I didn't grasp some of those concepts well.

About Marionette, I started searching for resources and most current blog posts seem to be about moving from Marionette to React so I'm not sure if I'm learning it.




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

Search: