> The best way is always to stop when you are going good and when you know what will happen next. If you do that every day when you are writing a novel, you will never be stuck.
This is always hard. When things are going well (in flow, on a roll etc.) you want to continue and get it all out. When you get stuck in writing, programming or anything, taking a break seems to make sense after a few moments of toil.