Apparently with CoffeeScript you avoid polluting the global namespace (finally, no more clobbering that damn
jQuery and how many times have you accidentally defined your own
- No more polluting the global namespace! (Bullshit – this should rarely happen and is too fucking easy to avoid if you’re really that concerned about it)
- The Syntax (whitespace is so great, its like I’m writing my jQuery in Ruby)
- The Syntax (functions make so much more sense… because I’m that asshole who forget a 6 character long
returnstatement and blames the language for being difficult)
- The Syntax!!!! (ZOMG is like Rooooby so much! So its better, here’s a list of reasons that aren’t reasons, I’m super hipster kthxbai)
Polluting the global namespace? Well, then just don’t do that. Know the language well enough to not clobber any built-in types and know what variables your libraries expose and you’re good to go. If you’re developing a library for consumption then wrap it in a closure. How hard is it to do this?
1 2 3
Why not CoffeeScript
CoffeeScript annoys me. After thinking about it some more, I think what really annoys me are some of the developers who use it. In that respect I suppose what I’m really saying is “I hate looking at shitty code and shitt advice regardless of the language”. So, whatever. Everyone needs a good rant sometimes.