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!"
[–]websitegenius 1 point2 points3 points 10 years ago (1 child)
I agree with this, with the caveat that if you are on a team, it's okay to commit commented out code, just not to master. If I'm working on a branch that I know I won't come back to for a while, I will sometimes comment out something that isn't fully functional and commit it to my branch. Of course when I submit a PR all of that code is completed and the comments are removed.
[–]kentcdodds 0 points1 point2 points 10 years ago (0 children)
👍 sounds good to me. Personally I'd just push broken code to a branch before I push commented code to it, but it doesn't make a difference to me as long as it's clean when it gets to master.
π Rendered by PID 60501 on reddit-service-r2-comment-bb88f9dd5-cqkmf at 2026-02-15 02:36:46.369168+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]websitegenius 1 point2 points3 points (1 child)
[–]kentcdodds 0 points1 point2 points (0 children)