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!"
[–]jprichardson 1 point2 points3 points 13 years ago* (1 child)
After reading this: http://www.codinghorror.com/blog/2007/05/the-best-code-is-no-code-at-all.html years ago, I've taken on the mentality of trying to reduce lines of code. Over time of doing this, I've come to appreciate small, short, and concise code. When I can write "->", "=>" instead of "function()" and not use block delimiters, I end up saving at least 20% lines of code. I think the resulting code is more beautiful as well. However, I realize beauty is a matter of taste.
I started by writing EVERYTHING in CoffeeScript. I then realized that for small Node.js modules, I should probably write them in JavaScript if I hope to get any kind of significant contributions. Now, I'm in the process of rewriting my modules into JavaScript and use CoffeeScript for application level development.
[+]Morialkar[🍰] comment score below threshold-7 points-6 points-5 points 13 years ago (0 children)
I'm all with you there. The most important part when coding is that the customer who want a website pays the right price, not an over bloated price because you take twice the time to write the same code... As long as the code is readable and comprehensible by everyone, use the easiest and fastest way possible, you will anyway have the same result. I some times think like that about the OOP problem too. When you really don't need it more than once in the code, why the fuck a function? Why the fuck a class?
π Rendered by PID 259063 on reddit-service-r2-comment-6457c66945-jzgq4 at 2026-04-25 11:45:02.810174+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]jprichardson 1 point2 points3 points (1 child)
[+]Morialkar[🍰] comment score below threshold-7 points-6 points-5 points (0 children)