Tuesday, February 23, 2016

Write Code That Is Easy to Delete

tef (via Buzz Andersen):

Every line of code written comes at a price: maintenance. To avoid paying for a lot of code, we build reusable software. The problem with code re-use is that it gets in the way of changing your mind later on.

[…]

If we see ‘lines of code’ as ‘lines spent’, then when we delete lines of code, we are lowering the cost of maintenance. Instead of building re-usable software, we should try to build disposable software.

Comments RSS · Twitter

Leave a Comment