When I usually write code I follow some guidelines to ensure that my code has a certain standard and I as any other developer try to ensure that my code and software is of quality.
Try to focus on the programming and not the understanding of the domain or any other pre-programming steps(in the answer that is!).
These are the following steps I live by:
Writing unit tests
- Make it fail ( no code )
- Make it Work ( working code )
Analysing abstraction
- Extracting methods
- Exteract interfaces
Refactoring
In addition to the above which is a part of refactoring, I also try to refactor the code with good tools such as ReSharper, CodeRush or others.
The question; What is the next step?
Commenting the code is trivial and shouldn't even have to be mentioned, but updated comments and xml-comments where it's needed / everywhere is something that I try to have.
But all the above helps he ensure that other developers might understand my code, that the code has some sort of quality and follows naming standards.
It does however not ensure any product quality.
I am looking for tools for post-development quality ensurance, such as profilers and how one would use these tools to increase product quality.