Clean Code Psychopath

1 minute read

Published:

John Woods once used the provocative phrase “clean code psychopath” to describe a certain kind of developer attitude. The phrase makes me smile because I have seen smaller versions of the behavior. A developer becomes so committed to an idea of clean code that the code stops serving the project. Names must follow one perfect rule. Functions must have one ideal size.

Every pattern must match a book. A practical solution becomes unacceptable because it is not elegant enough. Clean code matters. Readable code saves time. Good names matter.

Simple functions matter. Tests matter. But software engineering is full of trade-offs. A small script has different needs from a medical system. A prototype has different needs from software expected to live for twenty years.

Sometimes a little duplication is easier to understand than a clever abstraction. Sometimes the “perfect” architecture creates more complexity than the problem itself. I like clean-code principles when they make code easier for people. I become suspicious when the principle becomes more important than the people. Rules are tools.

They should help judgment, not replace it. The best code is not the code that looks most morally pure. It is code that works, can be understood, can be changed safely, and fits the reality of the project.