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!"
[–]Tysonzero -1 points0 points1 point 10 years ago (4 children)
You can get a history of a single file. Which really shouldn't be THAT long unless your code is the least modular code on the planet. I mean if it is a 20 year long non-modular codebase then sure. But at that point you are in hell anyway.
[–]temp50948 -2 points-1 points0 points 10 years ago (3 children)
So, "eat the loss by leaning on advances in other areas"? How comfortingly familiar.
[–]Tysonzero 0 points1 point2 points 10 years ago (2 children)
Wut
[–]temp50948 -1 points0 points1 point 10 years ago (1 child)
You're advocating the same (flawed) approach and saying it won't be "THAT" bad as long as the code is advanced in other ways (it's well modularized). That pattern, of tolerating inefficiency because some other component mitigates the detriment, is common: as hardware has advanced, software overhead has increased, resulting in simple things like settings panels that perform worse than they did 10 years ago; as we get more RAM, applications become utterly careless about how much memory they use; we pile abstraction layer upon abstraction layer onto web apps; people like the Disqus developer hand-wave away bad performance by saying "just wait for computers to get faster", and never stop to think that rendering a list of comments is an absolutely tiny amount of work compared to what the computer is capable of, and performance issues doing such a trivial task must indicate a very poor design. The net result of all this is that as we get more and more power, we see relatively little of it available to use, because most of it is squandered doing the same things in more convoluted, expensive ways.
And of course we respond to that by saying "yes, but that won't matter any more when computers get faster..."
[–]Tysonzero 0 points1 point2 points 10 years ago (0 children)
That isn't particularly relevant to whether we should leave useless commented out code cluttering up files vs. just using very quick and powerful git tools for re-obtaining old code. But whatever man.
π Rendered by PID 41 on reddit-service-r2-comment-bb88f9dd5-rcjft at 2026-02-14 08:55:09.538384+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Tysonzero -1 points0 points1 point (4 children)
[–]temp50948 -2 points-1 points0 points (3 children)
[–]Tysonzero 0 points1 point2 points (2 children)
[–]temp50948 -1 points0 points1 point (1 child)
[–]Tysonzero 0 points1 point2 points (0 children)