News for hackers. Stuff that matters.
Re:CoffeeScript 1.1.0 released by power78 on Monday May 02, 2011 @12:28AM (#2505107)
I'm confused. Is javascript really that hard to use that we need CoffeeScript? Why was CS even created?
Re:CoffeeScript 1.1.0 released by rdtsc on Monday May 02, 2011 @01:12AM (#2505223)
It might not be as 'hard' conceptually to use, but it just has some dirty areas that are sort of make it unpleasant to use so it leaves a bad taste in some programmers mouths.

* 0 == '' is true, really? what about 0 == '0', also true!

* What is 'this'? Well it depends on where you are and there is a long article someone posted somewhere. To figure it all out...

* Brace block != new scope.

* No nested namespaces -- all is in a global scope.

And there are others. Again. Not hard just kind of unpleasant, therefore CS.

Re:CoffeeScript 1.1.0 released by swaits on Monday May 02, 2011 @01:09AM (#2505209)
Because someone wanted to? Folks are using it. Isn't that enough for you? On top of that, it's quite a nice little language. Comprehensions are very convenient along with regular iteration. And you get most of the jslint passing stuff for free. Plus, if you don't like it, don't use it.
Re:CoffeeScript 1.1.0 released by power78 on Monday May 02, 2011 @04:45AM (#2505624)
Sorry if I came off as being rude, it was not my intention. I was merely asking questions, but I guess it seemed harsh.
Re:CoffeeScript 1.1.0 released by swaits on Tuesday May 03, 2011 @01:34AM (#2509089)
I suggest you play with it a bit. It really is a "nicer javascript". The only thing it's missing is support, primarily in the form of debugging tools. But that's coming.
Re:CoffeeScript 1.1.0 released by VMG on Monday May 02, 2011 @03:13AM (#2505517)
not hard, just inconvenient.

Its a legitimate question, I don't get the downvotes.

Re:CoffeeScript 1.1.0 released by sid0 on Monday May 02, 2011 @07:37AM (#2505911)
Experimenting and trying out new things is good in principle. Even if you don't agree with this, here's an example of JavaScript taking feedback from CoffeeScript: http://brendaneich.com/2010/11/paren-free/