Intermediate Booleans

Ned Batchelder uses intermediate booleans to tame conditions from hell.
Ned does a great job of cleaning up those conditions from hell. I would recommend taking it one step further: When cleaning up complex conditions, create functions/methods instead of intermediate booleans, thus facilitating reuse of these partial conditions.

Comments are closed.