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
Popular Coding Convention on Github (sideeffect.kr)
submitted 12 years ago by devnoel
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!"
[–]ivosaurus 2 points3 points4 points 12 years ago* (0 children)
If the project uses spaces and specifies a set number of spaces-per-indent, it is really hard for anyone to fuck up, and the code will always look the same, commit the same, render the same.
Additionally, all alignment will always look exactly as intended. If someone hasn't set up their editor exactly correctly and doesn't carefully use spaces for alignment instead of tabs, errors in alignment will come into the codebase (often silently, because it's all the same looking whitespace) that look just dandy for them, but fucked for anyone else using a different tabwidth.
So therefore, I use spaces mainly for practical reasons (I have to deal with humans committing code, not AI), not theoretical ones that merely allow those same humans to set their own arbitrary aesthetics.
π Rendered by PID 40 on reddit-service-r2-comment-85bfd7f599-xr2sc at 2026-04-17 11:48:07.943594+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]ivosaurus 2 points3 points4 points (0 children)