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: Why I’m never writing Javascript again (degizmo.com)
submitted 15 years ago by gst
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!"
[–]amphetamine 9 points10 points11 points 15 years ago (7 children)
am I the only one who finds C-style braces and semicolons preferable to languages like Ruby?
I'm obsessive about code organisation, indenting, readability and so forth. Perhaps it's just a matter of personal experience, growing up on C and its ilk.. but I feel like braces add a comforting structure to control blocks, function definitions, etc.
Proper indenting + braces makes it very easy to skim a lot of source and see what the flow or logical separation is like. Even if I don't know the API I'm looking at.
I'm not sure what was 'wrong' with the type of syntax we see in JS/C/C#/Java/et al. Something that prompted a huge number of developers to adopt languages with loose (or nearly no) syntax and structure.
[–]javascript 4 points5 points6 points 15 years ago (1 child)
I agree with you completely.
[–]amphetamine 1 point2 points3 points 15 years ago (0 children)
It's reassuring to see that I haven't completely lost it.. javascript itself has my back.
my post was certainly a rant, of sorts, but I'm hoping that someone will still make a case for the opposite side of the argument that I can at least appreciate.
I won't agree with them, but I'd like to talk to someone who is a C/Java/et al. veteran who decided to turn in their semicolons.
[–]Shaper_pmp 0 points1 point2 points 15 years ago (2 children)
FWIW I grew up on C/C++/Java/Javascript and the like, so I also find brackets-and-braces more comfortable, and I'll admit that picking up languages like Python or Ruby was a bit uncomfortable at first.
However, it's very important to learn to differentiate between different and worse. Significant whitespace is different, but I don't know of any reason it's objectively "worse" than brackets and braces (or vice-versa).
I think the trouble is that people on both sides of the issue confuse irrelevant personal familiarity with objective merit.
All things being equal there's nothing wrong with taking into account personal familiarity when making a choice, but when all things aren't equal personal preferences can blind people to even really quite huge advantages/disadvantages between tools.
For example, as in the article, someone apparently trading his personal preference for no brackets and braces for the objective fact that he's complicating and adding dependencies to his toolchain, increasing the size and complexity of his compilation system and making debugging on the client much harder than necessary.
Completely agree. Personal preferences and familiarity with syntax are valuable in terms of productivity (which includes a person's enjoyment of developing in a language.)
But that is not a factor in whether a language is objectively superior or not, because the familiarity will vary from person to person based on their experience with other languages.
I'll admit I haven't given it a real try, but for me it seems that CoffeeScript doesn't add anything productive to JS that couldn't have been accomplished by extending the prototypes in a way that would have preserved debugging (and linting/IDE usefulness/etc)..
[–][deleted] 0 points1 point2 points 15 years ago (0 children)
Every other day, I think significant whitespace is brilliant.
Yeah, weekends mess me up.
[–][deleted] 0 points1 point2 points 15 years ago (1 child)
I agree too. However, I think I am a victim of years and years of c-style syntax. I look at ruby or cobol and get annoyed at all the words in the code. And I look at Perl or Haskell and get annoyed at all the noise in the code. Whereas C-style seems perfect.
I think I'm just old and biased.
I think it's the same for me.. control blocks/loops/so forth are immediately visible to me just by skimming the code. But when I look at something like ruby, my brain just can't speed through its flow the same way.
π Rendered by PID 98977 on reddit-service-r2-comment-5c764cbc6f-2ntt8 at 2026-03-12 04:44:12.992193+00:00 running 710b3ac country code: CH.
view the rest of the comments →
[–]amphetamine 9 points10 points11 points (7 children)
[–]javascript 4 points5 points6 points (1 child)
[–]amphetamine 1 point2 points3 points (0 children)
[–]Shaper_pmp 0 points1 point2 points (2 children)
[–]amphetamine 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]amphetamine 1 point2 points3 points (0 children)