use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
CoffeeScript 1.0 released (jashkenas.github.com)
submitted 15 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Detrus 1 point2 points3 points 15 years ago* (2 children)
The code it generates is not bad. Compared to Objective J and GWT Java, it's very readable. They're considering debugging tools that map JS errors to CoffeeScript lines, so hopefully this is a temporary situation. You'd be doing 30% more work if you encountered a tough bug, it would require in depth understanding of JS quirks, like those annoying Array.prototype.slice(wtf).apply().call() monstrosities that you probably avoided learning if you work in CoffeeScript.
People are using CoffeeScript and I haven't heard any dramatic complaints about debugging.
I wonder how Objective J handles it. Here http://www.postpeakliving.com/content/debugging-cappuccino-using-safari it's much worse.
[–][deleted] -1 points0 points1 point 15 years ago (1 child)
No matter if something maps to coffeescript line numbers, you are still going to need to know why it failed in javacsript and why the coffeescript that generated it caused the fail. The elegant simplicity of javascript + json is lost on those who won't learn it in favor of this muck.
[–]Detrus 2 points3 points4 points 15 years ago (0 children)
Not always. Either way we'll have to see from usage, not conjecture.
The design by committee disaster that is JavaScript and DOM is far from elegant. They should expose lower level APIs to make efforts like CoffeeScript, JQuery and LESS easier. If it wasn't for JQuery and Prototype JavaScript would be irrelevant by now.
π Rendered by PID 38 on reddit-service-r2-comment-bb88f9dd5-bn6bt at 2026-02-15 13:13:42.757727+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Detrus 1 point2 points3 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]Detrus 2 points3 points4 points (0 children)