Making time to plan first

My original title for this was “taking time” but so often we have to make ourselves do it. Yesterday a solution to a problem struck me in the shower (where all good ideas come from, of course). After dressing quickly I sat down and start coding. Why stop and plan?  I can bang this out