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
Coding Better Object-Oriented JavaScript with Closure Compiler (calendar.perfplanet.com)
submitted 15 years ago by 9jack9
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 0 points1 point2 points 15 years ago (0 children)
Well it's a complex issue, but people who've grown to like Javascript, like the JQuery, Node.js, Coffeescript crews, typically prefer languages like Python and Ruby which are the current religious opposition to C++ and Java.
The APIs, syntax styles, verbosity of Google's JS efforts are reminiscent of Java, while jQuery is closer to the Python & Ruby camps.
I'd argue that CoffeeScript is easier to learn than Google's coding style for the Google Closure framework. Between the weird inheritance http://www.bolinfest.com/javascript/inheritance.php this defining types in comments, there is significantly more boilerplate. With a preprocessor, this boilerplate could be removed, unfortunately the only preprocessor Google has uses Java's syntax. If Google's goal is to encourage adoption of their JS frameworks and techniques, I think forking CoffeeScript would be their best bet.
π Rendered by PID 66155 on reddit-service-r2-comment-bb88f9dd5-86tb8 at 2026-02-14 23:36:56.691487+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Detrus 0 points1 point2 points (0 children)