3 ms·
Interesting post. I agree with one statement, many (not all) of the popular client side MV(not really C) libraries do lock you into a particular pattern. Especi
by MatthewPhillips 14y ago
Interesting post. I agree with one statement, many (not all) of the popular client side MV(not really C) libraries do lock you into a particular pattern. Especially Ember, Angular, Enyo... any with the scent of magic. That is what is most compelling about Backbone, it gives you the bare minimum, stuff you likely need anyways (the router and event emitter particularly).
Not knowing about their setup I can't comment on why it didn't work for them. I have to wonder if they truly were developing 2 apps, as they said, or was it a mish-mash? I find that when you trying to blend a single-page app with a traditional multi-page app you run into the most issues. You duplicate a lot of logic because it's hard not to.
In a true single-page app, the server doesn't need to be aware about the client at all. The server code should contain no views. It shouldn't even serve index.html in my opinion, nginx can do that far better.