I try to follow a simple rule.. Leave the code in a better state than I found it.
Every time I submit a revision I try to include a change which improves an area of the code outside of my main focus.
By doing this I am constantly improving and re-learning parts of the codebase that otherwise become moldy.
So, A typical checking might be something like...
Add ability for animation tracks to play in reverse.
Add missing null reference check to CalculateWorldTransform
Improve per of serializer by 10% (avoid string parse for main line case)
BUGFIX #1087: Keyboard input delayed by one frame
Basically, I try to make refactoring/improvements an ongoing part of development rather than a chore.
Every time I submit a revision I try to include a change which improves an area of the code outside of my main focus.
By doing this I am constantly improving and re-learning parts of the codebase that otherwise become moldy.
So, A typical checking might be something like...
Add ability for animation tracks to play in reverse. Add missing null reference check to CalculateWorldTransform Improve per of serializer by 10% (avoid string parse for main line case) BUGFIX #1087: Keyboard input delayed by one frame
Basically, I try to make refactoring/improvements an ongoing part of development rather than a chore.