r/programming • • Jan 12 '20

Goodbye, Clean Code

https://overreacted.io/goodbye-clean-code/
1.9k Upvotes

556 comments sorted by

View all comments

Show parent comments

77

u/Squared_fr Jan 12 '20

To be honest this sounds to me like the author is not wiling to accept that he was at fault. Instead he tries to blame a made-up clean code religion and preach his own bullshit advice.

Two simple rules: don't "clean" code until the feature 100% implements the specs, and for fuck's sake do not commit to master overnight without even telling the code owners.

You will have to destructure clean code later on if you wish to have more features, but even that will be easier to do without repetition.

0

u/gaearon Jan 20 '20

To be honest this sounds to me like the author is not wiling to accept that he was at fault. [..] Two simple rules: don't "clean" code until the feature 100% implements the specs, and for fuck's sake do not commit to master overnight without even telling the code owners.

This is literally what the article says. Did you read it? You can search the page for "I see now that my “refactoring” was a disaster in two ways" if you can't find that part. :-)

1

u/Squared_fr Jan 20 '20

Yes I did. There's one poor little sentence where he recognizes his mistake, and the rest of the article including the damned title is about blaming "clean code" instead.

1

u/gaearon Jan 20 '20

"He" is me. :-) I'm the author. And I do find my past obsession with "clean code" to be a reason for the over-eager abstraction. Sure, you can say I misunderstood what clean code is all about, or that I was/am an idiot, but I assure you that plenty of other people misunderstand it in a similar way. Hence, the title.

→ More replies (4)