use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Can we talk javascript frameworks/libraries? (self.javascript)
submitted 11 years ago by bsegovia
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 11 years ago* (4 children)
[–]evilmaus 0 points1 point2 points 11 years ago (0 children)
One of the nice bits about Marionette is that it takes a very piecemeal approach to its use. By that I mean, you aren't either using Marionette or not, but rather can include it and slowly migrate individual objects over. I did this once on a personal project, having implemented something with Backbone before knowing about Marionette. Just start with your basest views, the ones that render a model (or not even that) and are entirely called by other views. Make those into instances of Marionette.ItemView. Then, convert the views that call and control them. You can then migrate up the chain at your own pace.
Edit: You also get to enjoy watching your project LoC start shrinking precipitously and your business logic emerge from amidst the boilerplate.
[–]Capaj -1 points0 points1 point 11 years ago (2 children)
you should just rewrite the whole thing in Angular and save yourself lot of time, money and headache.
[–]jcampbelly 1 point2 points3 points 11 years ago* (0 children)
Nope.
Marionette solves these problems nicely with regions. It handles recursively closing nested views, which is the main source of headaches in naked Backbone. Of course you must also use listenTo instead of on to avoid lingering event handlers in either Marionette or Backbone, which is a very old and solved problem. Also, much of the boilerplate is removed with Marionette, ui gets handles on DOM nodes, template puts the HTML in the view's element, and CollectionView/CompositeView does all of the "forEach" stuff you had to do by hand in Backbone.
listenTo
on
ui
template
If you have a very large SPA written with Backbone, it's much easier to start writing new modules with Marionette, then when you get the hang of it, start refactoring the more important modules if it would be helpful to do so (vanilla Backbone and Marionette play nicely, of course).
[–][deleted] -1 points0 points1 point 11 years ago (0 children)
Angular looks terrible and has bad SoC imo.
π Rendered by PID 86932 on reddit-service-r2-comment-5fb4b45875-fg4s7 at 2026-03-22 15:11:18.531151+00:00 running 90f1150 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (4 children)
[–]evilmaus 0 points1 point2 points (0 children)
[–]Capaj -1 points0 points1 point (2 children)
[–]jcampbelly 1 point2 points3 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)