When the punishment for writing code that doesn't work is a long wait, you learn to write small pieces and test individually.