Stephen King advises that when you're writing a story, you're telling yourself a story. When you're rewriting, you're taking out all the things that are not the story. Krasimir Tzonev applies this to programming by asking if each part of the code is essential to the main functionality.