…@get('images').push(newImage) # => Mutates a shared instance
The solution for this problem is even simpler. If we change the defaults property to be a function that returns the same hash, Backbone will call it every time a new instance is created. class RobotProfile extends Backbone.Model defaults: -> images: 
Now our images array will no longer be shared across multiple instances, and we can mutate to our heart's content.
Written by Sean Griffin
Have created an API for a production environment
Use source control exclusively, Git preferably
Use ftp to deploy applications
Experience programming …
…Congifuration. Rails in JS. Ember is like Rails, Backbone is like Sinatra. At some point you have to use more plugins if you start with something minimal. A lot of pain if you want to write a big app with a small framework.
Andrzej : I disagree. I would use a framework for a prototype or for a small app. Once the app grows, it has its own world. I don't want the framework to go into my way. I want to have the control over the applications. I'd use Ember for smaller apps, …
…, CoffeeScript, Sass, jQuery, Handlebars, Backbone, Underscore, Sinatra, Clojure, Java, Hadoop, Cascalog. Highlight: "You don't need a database, you need a [expletive deleted] cache" So that's what we did, we traded our database for a cache.
…becomes a much more granular decision. Arbitrary sections can be ‘re-rendered' in response to events.
By keeping a strong separation of concerns between your views and templates, you end up with code that is cleaner, more modular, more readable, more performant, and easier to maintain. Give it a try, you will be surprised by the power and simplicity of this approach.
Learn more about Backbone best practices in our book Backbone.js on Rails .
We've spend a lot of time getting Backbone to work properly, and the ease-of-use quickly deteriorates when your models get more complex . It's a great choice for simple stuff, but email is far from simple. We also had to add yet an other extra layer of processing to generate " ViewModels" on the server because the normal Rails serialization of objects wouldn't cut it.
What you end up with is building a layer cake that doesn't add any value and slows down development. …
We're having hexagonaljs representatives. As I'm representing the last one, during the last few days, I've did more research on the other alternatives., angular, Backbone and
There are huge differences between all the choices. Some of the frameworks are like Hexagonaljs is not even a framework ., some are more like .
I have been making notes on the differences, collected jokes on each of the opponents. It's going to be a great …
…ember or angular . It can be a rude suprise when Backbone suddenly leaves you on your own when you were expecting to have a helping hand. There are many gotchas surrounding sub-views for example that aren't typically mentioned in the many list examples out there.
It is very easy to find yourself in a situation where your views are leaking memory if you aren't careful. Happily, with some recent additions to the framework and some good tools, we can identify …
…learning curve is probably more steep compared to one of the other client side frameworks such as Backbone, but that's mainly because of what Ember is giving you back once you learn to master its features.
Due to all this it can be tricky to find some good resources for newcomers to understand where to start exploring the magic world of Ember. For this reason I've compiled an evolving list of resources and demo applications to try to understand the power of this great framework.
…pattern extremely helpful for a number of reasons described below. Also, many popular frameworks such as Backbone use class instantiation / extension patterns. Naming conventions for classes is CamelCase with an upper case first letter.
Some of the benefits of this pattern are:
* It's great for when you have many of an item and each needs its own state.
* It's a familiar OOP pattern / workflow for many developers.
* It has a constructor function that's immediately fired …