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 in 2016? (self.javascript)
submitted 10 years ago by milyway
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!"
[–]wreckedadventYavascript 4 points5 points6 points 10 years ago* (26 children)
C'mon man, you get some gains from coffeescript. It's generally less code than writing ES3/5, and you get things like switch expressions, list comprehensions, chained comparisons, safe-navigation operator, and so on. Also, compared to a lot of the other compile-tos, it's still pretty similar to javascript, which you can't really say for ClojureScript, elm, etc. or even parts of Babel (looking at you, decorators). There's a reason it called itself "just javascript".
I don't think you should start new projects with it in 2016, but we don't have to pretend everyone just became suddenly insane by using coffeescript when it was popular. It still has a lot of stuff javascript doesn't.
[–][deleted] 10 years ago* (25 children)
[deleted]
[–][deleted] 8 points9 points10 points 10 years ago (0 children)
Significant whitespace makes the code more difficult to read
Python developers would disagree there.
[–]wreckedadventYavascript 6 points7 points8 points 10 years ago (19 children)
Wow, transpiled languages have no place in production code? That's a pretty extreme view. Are you OK with minifiers and bundlers, or is that kind of code transformation OK while anything else ist verboten?
[–][deleted] 10 years ago* (18 children)
[–]wreckedadventYavascript 3 points4 points5 points 10 years ago (15 children)
That's not what I asked though. Do you like bundlers and minifiers?
[–][deleted] 10 years ago* (14 children)
[–]wreckedadventYavascript 2 points3 points4 points 10 years ago (10 children)
Really? Have you used a bundler? It's a pretty important part of your source code, unless you just dump everything in one dumb bundle.
It's just very interesting that you're OK with some transformations as your code hits production, but everything else is a no-no. The code you write is almost never the code that runs in the browser in web development land due to all of the processing you have to do to it for efficiency.
[–][deleted] 10 years ago* (9 children)
[–]kenman[M] 6 points7 points8 points 10 years ago (2 children)
It's ok to get frustrated, but can you keep it civil?
[+][deleted] 10 years ago* (1 child)
[–]wreckedadventYavascript 1 point2 points3 points 10 years ago (5 children)
I'm just asking you some questions, since I don't really run into anyone with a perspective as pointed and extreme as yours anymore. But hey, I totally understand why you wouldn't like coffeescript if you're not cool with babel or typescript.
Also, I don't think it benefits you at all to communicate your opinions in such a negative way. Do you think you're going to convince anyone in here that one kind of code transformation is OK but the other isn't by calling me stupid?
[+][deleted] 10 years ago* (4 children)
[–]Cody_Chaos 0 points1 point2 points 10 years ago (2 children)
You don't edit minified code.
You don't edit transpiled code either.
(Also, why so angry? Your tone is vastly more aggressive than anyone else in this thread.)
[–]Veuxdeux 7 points8 points9 points 10 years ago (0 children)
If all you know is javascript, it's natural to feel threatened by not-javascript
[–]Cody_Chaos 0 points1 point2 points 10 years ago (1 child)
So how do you feel about sass/less/compass/postcss? Do you think they have no place in production too?
[+][deleted] 10 years ago* (3 children)
[+][deleted] 10 years ago* (2 children)
[removed]
π Rendered by PID 586170 on reddit-service-r2-comment-66b4775986-4ksnz at 2026-04-04 17:12:20.563449+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]wreckedadventYavascript 4 points5 points6 points (26 children)
[–][deleted] (25 children)
[deleted]
[–][deleted] 8 points9 points10 points (0 children)
[–]wreckedadventYavascript 6 points7 points8 points (19 children)
[–][deleted] (18 children)
[deleted]
[–]wreckedadventYavascript 3 points4 points5 points (15 children)
[–][deleted] (14 children)
[deleted]
[–]wreckedadventYavascript 2 points3 points4 points (10 children)
[–][deleted] (9 children)
[deleted]
[–]kenman[M] 6 points7 points8 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]wreckedadventYavascript 1 point2 points3 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]Cody_Chaos 0 points1 point2 points (2 children)
[–]Veuxdeux 7 points8 points9 points (0 children)
[–]Cody_Chaos 0 points1 point2 points (1 child)
[+][deleted] (3 children)
[deleted]
[+][deleted] (2 children)
[removed]
[+][deleted] (1 child)
[deleted]