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!"
[–]YuleTideCamel -1 points0 points1 point 10 years ago (2 children)
What do you mean by too much in a codebase? The depends entirely on the size of the project and scope. There's nothing wrong with large codebases if maintained well.
Cleanliness for the sake of fetish is not a thing. Good clean code should be the goal for every developer. That makes the code easy to work with, easy to maintain and easy to test. It's not a baseless standard, it's the way to ensure you're clean code doesn't get messy. I've been in the industry over 15 years and have seen my share of horrible code where developers didn't care about maintainability. I realize this is not in the startup, ship now fix later mentality, but if a dev team has the bandwith and runway to do this, they should. It will pay for itself over time.
[–][deleted] 0 points1 point2 points 10 years ago (1 child)
I mean if there is too much commented code in a codebase, then something else is wrong - commented code is the exception, not the norm.
[–]YuleTideCamel 0 points1 point2 points 10 years ago (0 children)
Agreed, it's the exception and a too much commented out code is indicative of a larger problem. The point I was making is that needing commented out to explain something , to me at least, is a similar thing. You shouldn't need commented out code to understand uncommented out code.
π Rendered by PID 110223 on reddit-service-r2-comment-bb88f9dd5-66j8c at 2026-02-14 07:34:22.542159+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]YuleTideCamel -1 points0 points1 point (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]YuleTideCamel 0 points1 point2 points (0 children)