What Can We Do About This?

God grant me the serenity to accept the things I cannot change, the courage to change the things I can, and the wisdom to know the difference.

Reinhold Niebuhr

Now that we’ve identified some of the problems of an evolving codebase, how do we manage the mess? What strategies can we adopt to avoid this?

The first and most important step is to recognize the problem. Too many programmers hack away without thinking about the quality of their code. As long as they silence the users’ screams in the shortest time possible, they don’t care what state they leave the code in. Someone else can deal with it next time.


Code conscientiously. Good programmers care more about how their code will look after a few years’ work than ...

Get Code Craft now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.