Keith Rarick

Readability Matters More Than Correctness

In programming, in the long run, correctness matters. But in the short run, readability matters even more.

If we have readability but not correctness, that means a buggy program that’s easy to understand. We can debug it. Then we’ll have a correct program that’s easy to understand. It’ll probably stay that way.

If we have correctness but not readability, that means a functional program that’s hard to understand. It’s likely we’ll introduce a bug. Then we’ll have a buggy program that’s hard to understand. It’ll probably stay that way.