Re:CoffeeScript -- You Are Totally Gonna Hate It
by bentlegen on Saturday July 17, 2010 @10:47AM
(#1523859)
I was expecting that one of the reasons would be "JavaScript is a perfectly good language on its own."
[ Parent
| on HN ]
Re:CoffeeScript -- You Are Totally Gonna Hate It
by TrevorBurnham on Saturday July 17, 2010 @11:12AM
(#1523893)
I wouldn't say that JavaScript is "perfectly good." For instance, the statement "i=0" declares a global named i, unless there's a "var i" statement in a closer scope. It's a very, very easy mistake to make, and can lead to hours of debugging.
JavaScript is good, but CoffeeScript removes many of its imperfections, as well as offering a far better syntax.
Re:CoffeeScript -- You Are Totally Gonna Hate It
by aaronblohowiak on Saturday July 17, 2010 @01:23PM
(#1524206)
jslint will help you to identify the global issue and takes seconds instead of hours.
Re:CoffeeScript -- You Are Totally Gonna Hate It
by Scramblejams on Saturday July 17, 2010 @07:34PM
(#1524866)
Any time I have to reach for an external tool to figure out what's wrong with my program, I wonder if the language/framework/library/whatever could be improved to help prevent the problem in the first place. Valgrind much?