I have three rules for better coding performance, for me.
- Ask Questions
- Do not Multitask. One problem at a time.
- Test control answers i.e. You want result to be 10 then test for 9 and 11. Wrong results create a more stable solution.
Speed has never been my strong suit, but when I deliver code to QA, you can bet that you will be testing a well thought out solution.