News for hackers. Stuff that matters.
Re:CoffeeScript is Afrikaans JavaScript by mseebach on Tuesday February 07, 2012 @08:39AM (#3561674)
I'm not sure I understand why CoffeeScript should be easier to understand for a backend developer than JavaScript?
Re:CoffeeScript is Afrikaans JavaScript by timruffles on Tuesday February 07, 2012 @09:18AM (#3561826)
Perhaps the author meant for those who know Ruby:

- @ for instance variables

- #{} interpolation

and Python:

- for comprehensions

- significant whitespace

Re:CoffeeScript is Afrikaans JavaScript by mseebach on Tuesday February 07, 2012 @09:29AM (#3561863)
Those are syntactic sugar. If your devs have trouble understanding JavaScript because of this, I suggest your devs aren't very good.
Re:CoffeeScript is Afrikaans JavaScript by raganwald on Tuesday February 07, 2012 @10:02AM (#3561992)
I don't think all features are "just" syntactic sugar:

http://weblog.raganwald.com/2007/04/writing-programs-for-peo...

Everyone parrots the line that programs should be written for people to read. I agree, and that's exactly why I use CoffeeScript: All of the devs in our office read and write JavaScript fluently, but code written in CoffeeScript is easier to read than code written in JavaScript.

Re:CoffeeScript is Afrikaans JavaScript by karterk on Tuesday February 07, 2012 @11:18AM (#3562342)
> but code written in CoffeeScript is easier to read than code written in JavaScript.

To be fair, that's a personal preference as well. For e.g. some people prefer reading code with symbols (&&, ||) than English keywords (and, or). Also, I have seen people from a C/C++ or Java background find JS easier to read than CS.

Re:CoffeeScript is Afrikaans JavaScript by mseebach on Tuesday February 07, 2012 @10:20AM (#3562067)
Yes, certainly. But the issue was whether these features makes CoffeeScript inherently more readable than JavaScript to a Ruby developer.
Re:CoffeeScript is Afrikaans JavaScript by dpritchett on Tuesday February 07, 2012 @09:55AM (#3561959)
The list comprehension syntax can be a bit confusing at first, especially if they're nested.

When I first saw them I just asked jashkenas in #coffeescript and then it made sense. Later I came to appreciate them in Python. Coincidentally I learned Ruby-style string interpolation from CoffeeScript before trying Ruby.