Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm starting to feel like anyone who has a negative opinion of CoffeeScript should prefix their statements with "I've spent the last M months writing code in CoffeeScript for H hours a day and these are my specific issues with it."

Otherwise, these endless discussions of JavaScript vs. CoffeeScript really aren't productive. If you haven't spent time with actual coding in it, then you probably don't have as well formed opinion on it, compared with people who are spending a lot of time with it.

So, I'll start with my own opinion...

I've spent the last 5 months writing code in CoffeeScript for 8-14 hours a day for my new startup. I can't imagine being as productive with JavaScript as I am with CoffeeScript. I write a fraction of the amount of code with CS than I would with JS and I get to take advantage of all sorts of great features, that would be much harder to replicate, like class hierarchy with constructors. I really love not having to type 'function() {}' all the time and the fat arrow really helps me with binding scope.



"I've spent the last M months writing code in CoffeeScript for H hours a day and these are my specific issues with it."

Only if we add months spent writing in JavaScript N hours a day too. Bonus for Python and Ruby.


you actually type function(){} ? not utilize those editors hey :p


I type => or ->

Once you get used to not reading the auto typed 'function() {}', it really makes your code look a lot cleaner.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: