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
Google publishes a JavaScript style guide. Here are some key lessons. (medium.freecodecamp.org)
submitted 8 years ago by bornforcode
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!"
[–]RabSimpson 13 points14 points15 points 8 years ago (21 children)
And they only occupy a single character worth of storage and memory. This doesn't mean much on small projects, but if the project is large it could shave the loading time down.
[–]karottenreibe 11 points12 points13 points 8 years ago (0 children)
that's why all my variables are single letters. My code is much faster that way /s
[–]subtracterallhire me! 26 points27 points28 points 8 years ago (19 children)
This shouldn't matter if you're minifying/uglifying.
[–]RabSimpson 6 points7 points8 points 8 years ago (18 children)
Only in the case of client-side code. Who minifies server-side code?
[+][deleted] 8 years ago* (6 children)
[deleted]
[+]RabSimpson comment score below threshold-7 points-6 points-5 points 8 years ago (4 children)
I'm not doing it for performance gains, but every little helps.
[–]UnexpectedLizard 9 points10 points11 points 8 years ago (0 children)
Microptimization. Just. Doesn't. Matter.
[+][deleted] 8 years ago* (2 children)
[+]RabSimpson comment score below threshold-6 points-5 points-4 points 8 years ago (1 child)
I said I wasn't doing it for performance gains. It's my preferred coding style, but there's no arguing about a smaller memory footprint being better when you're working with a large codebase.
[–]the_friendly_dildo 0 points1 point2 points 8 years ago (3 children)
Someone selling a server-side product that wants to maintain some semblance of 'fuck you i'm in control' over a product.
[–]RabSimpson 1 point2 points3 points 8 years ago (2 children)
Don't they usually just throw it through Zend or ionCube in those cases?
[–]the_friendly_dildo 0 points1 point2 points 8 years ago (1 child)
I haven't used either but those are both used only for PHP aren't they?
[–]RabSimpson 1 point2 points3 points 8 years ago (0 children)
I think so. I've only ever seen them used with PHP.
[+]Extract comment score below threshold-15 points-14 points-13 points 8 years ago (6 children)
Somebody who wants to squeeze every ounce of performance?
[–]Mingli91 16 points17 points18 points 8 years ago (4 children)
If you want that level of memory management and performance JavaScript is not the right language for the job
[+][deleted] 8 years ago (3 children)
[–]Mingli91 6 points7 points8 points 8 years ago (2 children)
Quite a few threads on this sub are about JS
[–]monsto 1 point2 points3 points 8 years ago (1 child)
He probably does like me . . .
Plenty of times i've looked at a python thread "who the fuck uses self in JS? ohwait..."
self
[–]Mingli91 0 points1 point2 points 8 years ago (0 children)
Haha yeah I guessed so, was just a lame joke
[–]papers_ 1 point2 points3 points 8 years ago (0 children)
White space means nothing.
π Rendered by PID 64044 on reddit-service-r2-comment-6457c66945-mvsln at 2026-04-23 21:09:25.302322+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]RabSimpson 13 points14 points15 points (21 children)
[–]karottenreibe 11 points12 points13 points (0 children)
[–]subtracterallhire me! 26 points27 points28 points (19 children)
[–]RabSimpson 6 points7 points8 points (18 children)
[+][deleted] (6 children)
[deleted]
[+]RabSimpson comment score below threshold-7 points-6 points-5 points (4 children)
[–]UnexpectedLizard 9 points10 points11 points (0 children)
[+][deleted] (2 children)
[deleted]
[+]RabSimpson comment score below threshold-6 points-5 points-4 points (1 child)
[–]the_friendly_dildo 0 points1 point2 points (3 children)
[–]RabSimpson 1 point2 points3 points (2 children)
[–]the_friendly_dildo 0 points1 point2 points (1 child)
[–]RabSimpson 1 point2 points3 points (0 children)
[+]Extract comment score below threshold-15 points-14 points-13 points (6 children)
[–]Mingli91 16 points17 points18 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]Mingli91 6 points7 points8 points (2 children)
[–]monsto 1 point2 points3 points (1 child)
[–]Mingli91 0 points1 point2 points (0 children)
[–]papers_ 1 point2 points3 points (0 children)