Re:AngularJS: A Retrospective
by warfangle on Wednesday March 26, 2014 @11:29AM
(#7474042)
When you use an unblessed language derivative like Coffeescript for your examples, please give alternate examples (even if they are simply generated by your coffeescript translator). Especially in this case, since Angular isn't targeted specifically at Coffeescript developers.
[ Parent
| on HN ]
Not to mention that it saves a whopping 4 lines here. There aren't any CoffeeScript specific features used here, so why use it at all?
Re:AngularJS: A Retrospective
by thoughtpalette on Wednesday March 26, 2014 @12:13PM
(#7474396)
I agree. Took me a second looking at the example then realizing it was coffee script. Not as helpful to me.
Re:AngularJS: A Retrospective
by lucisferre on Wednesday March 26, 2014 @12:13PM
(#7474399)
Is this just an anti-coffeescript rant or are you actually struggling to follow the examples?
I think it's a legitimate concern about the ability to read examples. Using nonstandard tools to showcase a concept limits the people who are able to follow along. Not everyone has invested the time to learn the ins and outs of CoffeeScript, why hinder understanding with it when "talking about CoffeeScript" isn't the point of the article?
Re:AngularJS: A Retrospective
by ulisesrmzroche on Wednesday March 26, 2014 @01:15PM
(#7474804)
It's really not a big deal in this case. Code is not doing anything tricky. Just add some ugly curly braces and parenthesis and it's es6 JS with the arrow.
Re:AngularJS: A Retrospective
by lucisferre on Wednesday March 26, 2014 @06:53PM
(#7477248)
No, it's a tired complaint from a group of people who don't like the idea that people are building for the web in something other than their favourite language.
No one is forcing you to like coffeescript, but it's completely unnecessary to complain about every single example or blog post that uses it.