I've found that it works well even with programming. Braindump code to get things working as quickly as possibly, then refactor mercilessly. Stephen Kings "On Writing" is pretty good read in general and useful not only for fiction but other writing and the creative process as well.