5 ms·
I politely disagree with ending up with more boilerplate code with marionette... you're ending up with _less_ boilerplate code when using marionette with backbo
by moimikey 12y ago
I politely disagree with ending up with more boilerplate code with marionette... you're ending up with _less_ boilerplate code when using marionette with backbone, and even when including marionette, your "boilerplate" code is necessary configuration... binding dom elements, events, template handling, rendering, data serialization... even more so if you're doing it in CoffeeScript.
behold... a view in 3 lines of code.
class Views.AlbumTracks extends Marionette.CompositeView
className: 'album-tracks'
template: 'album-tracks'
- alexbardas 12y agoIn angular you'd never need the line with className, so you'd end up with even less code, because of its declarative style. A good reading when thinking that's necessary to bind dom elements, events, etc is here: http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background http://stackoverflow.com/questions/14994391/how-do-i-think-i...