Usually if I spend long periods of time coding, the result needs to be debugged endlessly for about that same length of time. It's much easier to just do it in small increments.