4 ms·
I'm confused. Is javascript really that hard to use that we need CoffeeScript? Why was CS even created?
by power78 15y ago
I'm confused. Is javascript really that hard to use that we need CoffeeScript? Why was CS even created?
- swaits 15y agoBecause 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.
- power78 15y agoSorry if I came off as being rude, it was not my intention. I was merely asking questions, but I guess it seemed harsh.
- swaits 15y agoI 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.
- rdtsc 15y agoIt 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.
- VMG 15y agonot hard, just inconvenient. Its a legitimate question, I don't get the downvotes.
- sid0 15y agoExperimenting 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/ http://brendaneich.com/2010/11/paren-free/