Coffeescript: Joyful and Unreadable(allenc.com)
allenc.com
Coffeescript: Joyful and Unreadable
http://allenc.com/2011/11/coffeescript-joyful-and-unreadable/
1 comments
Right - what I'm saying is that it's okay to be slightly more verbose if it means added readability. My point was that it was the comb. of 4 libraries that's causing a lot of context switching on the same line of code.
If your central point is about context switching, you probably should've picked a different title for the post :)
For example, the => actually makes the code shorter and more readable than the equivalent versions (var that = this all over the place). The el and @template have nothing to do with CoffeeScript: they are from backbone and underscore, respectively. And once again, they are better than the raw JS alternatives (document.getElementById()? and inlining HTML into your JS).