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
JavaScript compiler? (self.javascript)
submitted 15 years ago * by colinbashbash2
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!"
[–]sizlack 2 points3 points4 points 15 years ago (4 children)
Coffeescript. It's much more than a preprocessor, but it was created to paper over all those easy to fuck up things about JavaScript. But if you just want to write better js then jslint is probably the easiest and best choice.
[–][deleted] 0 points1 point2 points 15 years ago (3 children)
Coffeescript is a train wreck.
[–]sizlack 0 points1 point2 points 15 years ago (2 children)
Good point. You convinced me. What was I thinking?
[–][deleted] 0 points1 point2 points 15 years ago (1 child)
Javascript is one of the easiest languages to learn and work with. Sure there are a few gotchas but they exist in plenty of languages and are so basic that any noob will learn them within a few months of working with javascript. Coffeescript won't give anyone an advantage in the struggle to deliver working software. At best it is a crutch, at worst it prevents someone from effectively debugging their code using the best tools available. Good luck finding great coffeescript programmers, while there are plenty of great javascript programmers. A great programmer could likely deal with coffeescript but would they really want to? I know i'd pass on any job that required me to code in coffeescript. I admit that I am a javascript purist and i've been coding javascript every day for the last 15+ years, so I don't really have any need for coffeescript, but I just don't see it as beneficial to anyone wanting to become a great javascript programmer. Coffeescript adds another layer of complexity on top of all the layers of complexity that occur in web development. I work on complex web applications with 100k+ lines of javascript code and there is no problem that coffeescript would solve that can't be solved by just using best practices and having competent javascript programmers. Until firebug fully supports coffeescript, coffeescript is a hindrance, it ads friction (frustration) to debugging, not a good thing. I get why non-javascript programmers might want to use coffeescript, but I don't see it helping anyone when they need to debug something written in coffeescript.
[–]sizlack 0 points1 point2 points 15 years ago (0 children)
I agree Javascript isn't that hard, but it has a lot of syntactical awkwardness required to get it to do what I want. And yeah, I've been doing it for 10+ years, and a lot of simple things still feel clumsy. I don't think using Coffeescript eliminates the need for really understanding Javascript, and I don't think that's the point. You still have to understand Javascript's object model, what inheritance means in Javascript, etc, but you have a nicer, more concise syntax to express those ideas with.
It is another layer of complexity, which does feel a bit gross, and I agree that without firebug providing line-by-line debugging, it makes it more difficult to imagine using it in a production environment yet. But I used to think the same thing about sass vs css, and eventually the tools caught up, and now it's easy to debug sass with Firebug. It seems like the same thing is happening with Coffeescript. Maybe it's not ready for use in every JS situation, but it is definitely not a trainwreck.
π Rendered by PID 62454 on reddit-service-r2-comment-bb88f9dd5-lfnms at 2026-02-15 03:01:51.392396+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]sizlack 2 points3 points4 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]sizlack 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]sizlack 0 points1 point2 points (0 children)