Yesterday I used a presentation tool that I had implemented over a number of years. Gradually my code had grown larger and larger, as I progressively added more features and refinements.
But yesterday I realized that only a small subset of the features of that presentation tool were really important, and that those features could be expressed in a far smaller codebase. So today I wrote a new presentation tool that implements just those features.
I now have a very small program that does just the coolest part of that other large program. Because this program is so small, it is going to be much easier to maintain, to use, to debug and to incorporate into other projects.
To misquote Henry David Thoreau:
“Our code is frittered away by detail. Simplify, simplify, simplify! I say, let your files be as two or three, and not a hundred or a thousand; instead of a million count half a dozen, and keep your accounts on your thumb-drive.”