QR code

Don't Aim for Quality, Aim for Speed

  • Moscow, Russia
  • comments

Managementmanagement quality

I decided to write this blog post after reviewing this pull request. What happened there? The author of the PR wasn’t able to figure out the “right” way to implement it, and the code reviewer was waiting and waiting. Eventually, the reviewer came to me, since I was an architect, and complained that it was taking too long and he wasn’t able to earn his money for the review he had done. Then the author of the changes explained that he couldn’t finish since there were impediments and design inconsistencies; he also couldn’t earn the money he deserved for fixing the issue. What did I say? I said: Forget the quality, just finish it any way possible.

Shi mian mai fu (2004) by Yimou Zhang
Shi mian mai fu (2004) by Yimou Zhang

Was I kidding? Not at all.

I truly believe that quality is not what programmers should care about. They must care only about speed—close tasks as soon as possible— which means make money.

Won’t this attitude ruin the project and turn the code base into a mess?

Yes, it will.

If the project doesn’t care about its quality either.

There must be a permanent conflict between a project and its programmers: 1) the project must be configured to reject anything that lowers the quality of its artifacts and 2) programmers must be interested in making changes to those artifacts. The project cares about the quality, the programmers care about fast delivery of modifications.

What do I mean by saying that a project rejects low quality? Here is a list of preventive measures it may take to make it impossible to jeopardize the quality:

What do I mean by saying that programmers must be interested in making changes? They have to be motivated to close tasks. Not just to be in the project, but to deliver. Here is what they can do in order to close tasks faster:

If we put these two interests in conflict, we will get a high-quality product, which is growing very fast. The project will enforce quality, programmers will push the code forward, making changes fast and frequently.

Unfortunately, most projects have a very different philosophy. They delegate quality control to programmers, hoping that they “won’t do evil.” This leads to frustration, distress, constant fear of mistakes, long delays, blaming, and shaming. Both the project and its programmers lose.

Programmers must not be responsible for the quality! They must not care what they may, or will, break. They must not care how good the code they write is. They must not “feel responsible” for the overall result. Instead, they must be focused on making money for their families by writing the largest amount of code and closing more tickets.

Not because they are ignorant and selfish, but because this is the right balance of responsibilities. This is how the project will get the most out of its developers—by freeing their minds of unnecessary and unproductive quality worries and letting them focus on what they do best—writing code.

Of course, not every project will be able to configure itself in the most effective way. Most projects don’t even know how to do it. In those projects, if you, as a developer, floor the speed pedal, you will most likely ruin their code base in a few days. That’s why the recommendations above are only applicable to those who really know what they are doing.

We know what we are doing in our projects. We don’t let any developers touch any parts of our code, unless the “quality wall” is high and strong enough. How high is that wall in your projects? Can you say that, no matter how bad some code is and how sneakily its author introduces it, it will be rejected?

sixnines availability badge   GitHub stars