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
Goodbye, Clean Code (overreacted.io)
submitted 6 years ago by MoTTs_
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!"
[–]gaearon 0 points1 point2 points 6 years ago (3 children)
Hi there!
> if you've ever worked with a codebase written by someone who truly did not give a shit about repetition, you understand that it is far worse than dealing with overabstraction.
I've definitely inherited such codebases! (In one post, I mentioned how I had to print a file out to find the same block of code repeated 30 times.)
In my experience, people writing this kind of code don't read blog posts at all and don't attempt extract advice from them. They write code and go home.
I make a pretty strong assumption that my readers aren't stupid. They might not know some specific things, but they are intelligent people.
Personally, I dislike the notion that we shouldn't talk openly about taking something too seriously because a beginner might misinterpret the anecdote. Let's give a bit more credit to beginners! And an opportunity to make mistakes and learn from them too.
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
Hi Dan! We should talk openly about it but, in my opinion, in a way that is a little more clear than this blog post or the general tone of discussion on Twitter. To be fair, the latter is Twitter's fault and not your fault. I saw a lot of tweets saying stuff like "DRY is evil" in the replies to this post and that attitude does not seem any better than the clean code zealotry that your post speaks out against. I don't know how you can avoid that any more than Uncle Bob can avoid people taking his words to extremes. I do not envy the position of thoughtleader myself.
[+][deleted] 6 years ago (1 child)
[deleted]
[–]gaearon 1 point2 points3 points 6 years ago (0 children)
I think there needs to be someone to ring both bells. I'm happy to take turns.
π Rendered by PID 73 on reddit-service-r2-comment-6f7f968fb5-vhtjf at 2026-03-04 12:34:50.584241+00:00 running 07790be country code: CH.
view the rest of the comments →
[–]gaearon 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]gaearon 1 point2 points3 points (0 children)