Code is read many more times than it is written, and its ultimate cost is often very high and paid by someone else.
While it’s difficult to get exact figures for value and cost, asking the following questions will give you insight into the potential expense of a bit of code:
How difficult was it to write? How hard is it to understand? How expensive will it be to change?

