I find however, that while typing it all out, my mind often continues analyzing and thinking, and that I often find a new idea, or new structure, that might be even better. Typing it out and seeing it appear in front of me. It also gives me a feeling for how tedious, brittle, or annoying the solution is.
Granted, sometimes it's really not that interesting to type the stuff. It depends what one is working on.
Each time I write a routine it's different. Its better. I've learned something from last time. In fact, this is one of the things that got me hooked on computing. That there's so much complexity, often hidden, that there's always more to learn and improve upon.
And truth be told, if I'm writing the same thing many times it's time to create a library. Maybe just for myself or for the company I work for. But the same thing happens. I always learn more while doing it and it always gets better.
I fear the programmer whose bottleneck is typing. They already know the answer. But the problem is that there is none