Great article. I can confirm I often come up with the new ideas in the shower.<p>In general I taught myself to alternate periods of deep concentration work with periods of &quot;pause&quot; where I stop writing code and let my mind &quot;wander&quot; in relaxing activities. I recommend taking a step back when faced with a difficult problem to solve.<p>Usually when I come back to work I take the initial problem with a more creative approach.