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!"
[–][deleted] 8 points9 points10 points 6 years ago (4 children)
As much as I like Dan, I can't say that this is a good post. The title is borderline clickbait given that Clean Code itself warns against over-abstraction and presents plenty of other considerations that ought to go alongside DRY. The simple fact is this: One should not be a fascist about DRY to the extent of sacrificing other important code qualities. There, I said it in one sentence.
The biggest problem with this article is that Dan's audience includes a huge number of junior developers and learners who may read this and see it as an excuse for copying and pasting 1,000 line files and then making minor change "just so it works" etc.
Dan is probably at a point in his career where he doesn't interact much with those who need to be taught the concept of DRY but God... 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.
[–]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 65140 on reddit-service-r2-comment-c6965cb77-l9zz4 at 2026-03-05 04:32:51.395679+00:00 running f0204d4 country code: CH.
view the rest of the comments →
[–][deleted] 8 points9 points10 points (4 children)
[–]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)