When you're coding are there certain things that you fret and worry about, specific topics that preoccupy your mind as you type (both new code and when maintaining/bugfixing existing code)?
These need not be bad things, more like voices in our heads that help us with the quality of our code, and prevent us from just hacking things out.
The list that I have is something like this:
- Should I be refactoring this?
- Is this code generic enough / too generic?
- Is this variable/function/class name sensible?
- This code seems a bit complex, am I missing something obvious here?
- Have I condidered the edge cases?