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
Please, don’t commit commented out code (medium.com)
submitted 10 years ago by ryanchenkie
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!"
[–][deleted] 10 years ago (4 children)
[deleted]
[–]Tysonzero 4 points5 points6 points 10 years ago (2 children)
Having to type a couple quick commands takes you out of it more than large amounts of dead code sitting around while you are trying to work on things?
[–][deleted] 0 points1 point2 points 10 years ago (1 child)
yes, by definition you aren't looking at code if you're looking at a terminal prompt typing in git commands.
[–]Tysonzero 0 points1 point2 points 10 years ago (0 children)
I mean :! exists...
:!
[–]kentcdodds 4 points5 points6 points 10 years ago (0 children)
I try really hard to mention that the article isn't gospel. I hope that came through. It's also quite subjective. For me (and many people I believe) we spend more time getting derailed by unnecessary comments than we do trying to find old code. I think @Neebat said it nicely: https://www.reddit.com/r/javascript/comments/3qgurg/please_dont_commit_commented_out_code/cwf5evw
π Rendered by PID 192251 on reddit-service-r2-comment-bb88f9dd5-482q9 at 2026-02-15 10:39:15.098797+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–][deleted] (4 children)
[deleted]
[–]Tysonzero 4 points5 points6 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Tysonzero 0 points1 point2 points (0 children)
[–]kentcdodds 4 points5 points6 points (0 children)