One thing that I've thought about quite a bit is how, in order to write fiction, we must allow our characters to rule our thoughts. I know that sounds crazy, and it is. But that's what works for me. I write best when my real world—including ME—is second to the fictional ticker tape in my head. Everything I eat, think, do, is enhanced by what my characters will do and say next. It's a fun life, really. When life is hectic and we are jerked out of this lovely thought mode, it feels awkward. Some folks save it all for the time they are sitting in front of their computers, but I like to let it roll all day and night. We're all different.
One thing though, the times when I was struggling in front of the computer, and the times I was rolling free, I couldn't see it in the work. It all looked the same. So moral of the story: you are who you are as a writer, situation good or bad. There's something comforting about that.