Re:How SoundCloud built its new single-page main website usi...
by vitorbal on Thursday June 14, 2012 @08:09AM
(#4110899)
you also have to somehow manage the lifecycle of your views, cleaning up after their event bindings and such. See this stackoverflow question[1] for more about this.
[1]: http://stackoverflow.com/questions/7379263/disposing-of-view...
Re:How SoundCloud built its new single-page main website usi...
by bricestacey on Thursday June 14, 2012 @08:38AM
(#4111003)
Thoughtbot wrote a lib that they bundled up as a gem that does this for you called Backbone Support. It's an easy way to get started, but you'll likely want to tweak it later :)
Re:How SoundCloud built its new single-page main website usi...
by alttab on Thursday June 14, 2012 @09:47AM
(#4111295)
I always get nervous when I see tons of JavaScript. Frankly it's hard enough to deliver a consistent experience in the browser just from a style and layout perspective.
I haven't dug into how it's done, but I feel like JavaScript apps are harder to test and verify. It's not like running unit tests on your server code. To truly verify you need to test the entire application in each supported browser.
Re:How SoundCloud built its new single-page main website usi...
by mark_story on Thursday June 14, 2012 @09:59PM
(#4114560)
Someday soon Javascript will have WeakMaps. They're already in Firefox.
i found javascripts lack of weak references extremely problematic when trying to develop a larger backbone app