-
Take lots of coffee breaks
-
Go to the toilet regularly (as a result of 1.)
-
Have a nemesis. If there isn't already someone at your company who vehemently disagrees with almost everything you believe in, try to cultivate an antagonistic relationship with a colleague.
-
Take regular showers
-
During said showers (and coffee breaks) practice mental arguments with your nemesis about the latest decision you've made. What would their rebuttals be? Do they have any merit?
-
Lie awake at night thinking about the code you wrote a few hours earlier
-
Invest in a high-quality rubber duck
-
Regularly ask yourself if you're fixing the problem or just treating the symptoms
-
Ask the duck what she thinks
-
Develop a deep and meaningful relationship with ELIZA
-
Carry around a notepad at all times
-
Sneer at your nemesis if you ever pass them in the corridor
-
Buy a Surface Pro because a notepad just isn't high-tech enough
-
use the notepad anyway
-
Repeat for two to three weeks
-
With luck, you'll have a sudden epiphany - there's another way of accomplishing your task which involves about three times less code and lets you write a couple more features in an afternoon!
-
Rush to your desk, start a new branch and type out the code you should have been writing in the first place.
-
Celebrate! Have another coffee.