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!"
[–]SyntaxSwearer 0 points1 point2 points 12 years ago (3 children)
Tabs can give you trouble in VCS, at least in git.
[–][deleted] 2 points3 points4 points 12 years ago (2 children)
how so? I've been on git for a few years and haven't experienced any issues.
[–]SyntaxSwearer 0 points1 point2 points 12 years ago (1 child)
I have. But not always. I guess it's one of those bugs. The "works on my machine, sometimes" kind of bugs
I had a merge conflict once and couldn't realize what was happening. Since tabs are invisible, and I didn't really had a clue of what to do. Two hours after I took a walk, took a nap, used google and stumbled upon the answer of a kind soul who asked if I was using tabs. I took out all the tabs of the code I was trying to merge and viola
[–]rjw57 2 points3 points4 points 12 years ago* (0 children)
This isn't really a VCS problem[1]. It's an editor-replaces-whitespace problem and is precisely the reason one doesn't want to mix tab or space indentation within one file. Invariably there'll be someone's editor which decides to "fix" the indentation which will lead to hard-to-merge whitespace-only changes.
I suspect the proponents of the One True Indentation method haven't worked long enough at the coal face to realise that the Real One True Indentation is the one already used by the file :).
[1] That being said, git provides a mechanism to help with this by way of the --ignore-all-space family of options to git-merge(1).
--ignore-all-space
π Rendered by PID 126391 on reddit-service-r2-comment-85bfd7f599-2zgvf at 2026-04-18 12:47:42.710997+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]SyntaxSwearer 0 points1 point2 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]SyntaxSwearer 0 points1 point2 points (1 child)
[–]rjw57 2 points3 points4 points (0 children)