News for hackers. Stuff that matters.
Re:The New Grooveshark by Axsuul on Thursday October 18, 2012 @05:09AM (#4668002)
Took a look at the code. It's built with Backbone.js!
Re:The New Grooveshark by cowpewter on Thursday October 18, 2012 @06:10AM (#4668113)
Yup! The previous version used JMVC but it was a poor fit. Backbone does juuuust enough to help you out then gets out of your way. Means you have to write a lot of your own architecture but that's pretty much my favorite thing to do ever (and I hated JMVC) so I gladly did so.

The site is way faster now, despite having more stuff going on, just because half the codebase is no longer trying to hack around the parts of JMVC we didn't need.

Re:The New Grooveshark by jashkenas on Thursday October 18, 2012 @09:20AM (#4668596)
Hey cowpewter -- I'd love to have you write up your experience for http://backbonejs.org/#examples ... email me a paragraph if you're interested.

Edit: One tip for you as well. I noticed that you're using "#!" in your URL routes. You probably don't want to be doing that these days -- either just plain "#" works, or pushState with hybrid server-side renders if you want to be indexed by search engines.

Re:The New Grooveshark by cowpewter on Thursday October 18, 2012 @09:57AM (#4668749)
Sure thing, just got some bugs to squash first. And thanks for making such an awesome lightweight framework.

pushState is somewhere on the backburner...

Re:The New Grooveshark by invisible on Thursday October 18, 2012 @01:26PM (#4669823)
We definitely need to get to the pushState change but #! is the way to go for being indexed properly without pushState (via _escaped_fragment_).
Re:The New Grooveshark by Axsuul on Thursday October 18, 2012 @06:32AM (#4668160)
Did you ever look into using something like LayoutManager or Marionette?
Re:The New Grooveshark by cowpewter on Thursday October 18, 2012 @06:43AM (#4668184)
No, after JMVC I just wanted to write it to work the way we wanted it to work without dealing with yet another framework.
Re:The New Grooveshark by tkone on Friday October 19, 2012 @03:36PM (#4675070)
+1. I was using marionette, but again, it's buying into an entire system. I ended up writing my own lightweight (15 lines?) version of their region manager and use that now.

(Marionette is a great project though!)