Dont Think, Just Set the Halt
When partnering with Kent Beck, most everyone has this experience:
Something goes wrong. The code doesnt work. You start to think: "What could cause that to happen?" Kent doesnt think about what the problem is. He just sets a halt in the system and lets Smalltalk tell him what the problem is.
Sometimes youre right about what the problem is. If youre really quick youll be able to tell Kent what to edit in the window hes already looking at. If youre really quick.
Sometimes youre not right about what the problem is. Forget it, he has already fixed it.
Train yourself to think about where to put the halt, not to think about what the problem is. Of course its a great feeling when you can reason to the problem. But were not here to make our brains feel good, were here to get the code working as quickly as possible. Setting the halt and letting Smalltalk tell you will help you build working code faster.
© 1997, 1998, Ronald E Jeffries