How do programmers write long repeating line of code?

So I've been reading about game design lately, and I realized that programers sometimes have to write reapeating code over and over. How do they sit through hours of writing the same line again and again? Do they have special mental training or something? But seriously, if no shortcuts are allowed, then how is it possible? What's their motavation?

Comments (2)