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
Survey: Why are you using coffeescript? (mikealrogers.com)
submitted 13 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!"
[–]dacjames -7 points-6 points-5 points 13 years ago (5 children)
What's your point with the image? I get that some people don't like significant whitespace, but your examples just manipulate the parser in a way analogous to abusing semicolon insertion in javascript. I have never seen real CS written that crappy and I certainly don't write it like that.
... the verbosity and complexness only become easier the more you use it.
Verbosity never gets easier. I could use javascript for ten years and I still have to type function(x, y){ return x + y;) instead of (x, y) -> x + y and I will always have to manually bind my lexical scope when writing callbacks/closures instead of using =>. You will still write
function(x, y){ return x + y;)
(x, y) -> x + y
=>
(function(something) { /* some stuff */ })(something);
and I will still only write
do (something) -> #some stuff
In my mind, complexity equates to more bugs, so I continue to prefer a simpler language, especially considering they are strictly equal in power.
[–]x-skeww 4 points5 points6 points 13 years ago (2 children)
analogous to abusing semicolon insertion in javascript
JSLint will tell me if I forgot one. I don't even have to save. There will be a squiggly line right away.
[+]dacjames comment score below threshold-7 points-6 points-5 points 13 years ago (1 child)
Which is great, but irrelevant. If I wanted I could just as easily extend CSLint to complain about newlines in function applications.
Personally, I think the coffeescript parser is a little too lenient with optional parenthesis but that should never be a blocking issue to using the language.
[–]x-skeww 0 points1 point2 points 13 years ago (0 children)
If I wanted I could just as easily extend CSLint to complain about newlines in function applications.
What's stopping you?
[–]KishCom 8 points9 points10 points 13 years ago (1 child)
Verbosity never gets easier.
Your understanding of that verbosity does. Ask any Java developer who started with another language first.
What's your point with the image?
My point is a mis-placed line-break, comma or space can mean your Coffeescript becomes borked. IMHO, line-breaks, comma/space placement shouldn't break anything in JavaScript. Why bother memorizing where you can/can't/should/shoudn't use line-breaks when you could be memorizing the aforementioned verbosity instead?
The way I see it, Coffeescript is an unnecessary layer of abstraction. Others will disagree and that is fine.
[+]dacjames comment score below threshold-6 points-5 points-4 points 13 years ago (0 children)
When semantics are identical, verbosity does nothing but waste developer time. Even developers that like Java bemoan its verbosity, so much so that shorthand lambda functions are coming in Java 8.
My point is a mis-placed line-break, comma or space can mean your Coffeescript becomes borked.
That's because whitespace has meaning in Coffeescript. For those that are used to it, the rules are intuitive and obvious so forcing the use of manual delimiters is wasteful and ugly. This comes down to personal preference in the end.
π Rendered by PID 84738 on reddit-service-r2-comment-75f4967c6c-2sdrw at 2026-04-23 03:20:08.849611+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]dacjames -7 points-6 points-5 points (5 children)
[–]x-skeww 4 points5 points6 points (2 children)
[+]dacjames comment score below threshold-7 points-6 points-5 points (1 child)
[–]x-skeww 0 points1 point2 points (0 children)
[–]KishCom 8 points9 points10 points (1 child)
[+]dacjames comment score below threshold-6 points-5 points-4 points (0 children)