What are you priorities when writing code? Obviously you need to implement some specific functionality and there may be a required level of performance. This is all testable or measurable. However, there are two other key goals, that are harder rate:
- Write code that is clear and easy to understand. I shy away from using the term “self-documenting”, but that is certainly what you should be aiming for.
- Make sure that the code is maintainable and extendible. It might be you that has to do future work and a little care now will make your life easier down the line.
It is #2 that I would like to focus on today … Read the rest of this entry »