3 ms·
My experience is the exact opposite. I find that CS removes a lot of the JS gotchas, and I'm not clear on the many ways that CS let's you do something, especial
by rapind 12y ago
My experience is the exact opposite. I find that CS removes a lot of the JS gotchas, and I'm not clear on the many ways that CS let's you do something, especially in comparison to JS. If anything it protects you a bit, by trying to enforce some of the "good parts".
http://arcturo.github.io/library/coffeescript/07_the_bad_parts.html http://arcturo.github.io/library/coffeescript/07_the_bad_par...
To each his own, but to me CS has been and continues to be a complete and obvious win over JS. 9 times out of 10 the benefit outweighs the annoyance of requiring a preprocessor for me.
- colin_jack 12y agoOn the multiple ways, I was sure I read a post that documented them all and had me nodding along but can't find it, this one seems good though [1]. [1] http://ceronman.com/2012/09/17/coffeescript-less-typing-bad-readability/ http://ceronman.com/2012/09/17/coffeescript-less-typing-bad-...
- rapind 12y agoOut of all of those points, it's really just the commas and curlies that I've found can lead to some confusion, in my experience at least. I haven't come up with a better approach than simply agreeing on a convention with your team though TBH. It's not too bad when everyone's on the same page and familiar with the gotchas (same could be said for most langs). I put together a post comparing some of the syntax differences as it relates to building ReactJS components in case you're interested: http://rapin.com/blog/2015/02/03/reactjs-with-coffeescript/ http://rapin.com/blog/2015/02/03/reactjs-with-coffeescript/ Given that JS itself has quite a few different ways to do things though, it's kind of a wash.
- colin_jack 12y agoOn the multiple ways, I was sure I read a post that documented them all and had me nodding along but can't find it, this one seems good though [1]. [1] http://ceronman.com/2012/09/17/coffeescript-less-typing-bad-readability/ http://ceronman.com/2012/09/17/coffeescript-less-typing-bad-...