Monday, August 27, 2018

The Future-Self Test

If you're looking for some kind of gate you can insert into your development process to try to drive code quality in a positive direction, I submit this: the Future-Self Test.

It's a simple test to apply to any new code or any code you are changing:
If I have to come back to this code in six months without having seen it in between, how easy will it be for me to start working with it?
The answer to that question is a good, fast approximation of the health of the code you are writing/changing.

If you aren't satisfied with the answer you get, there's a follow-on question:
Why?
Whatever it is that's going to make it hard to work with the code in the future, try to make it a little easier.