As you write successively longer and more complex programs, you should be keeping a record of the most common kinds of mistakes you make. Then, in subsequent programs, you can specifically look for the kinds of mistakes you've made frequently in the past.
You'll be tempted to just hit the "Syntax Check" button or the "Execute" button and have the language do your proofreading for you, but resist this temptation! The simple fact is that you are smarter than the computer. The computer can spot certain kinds of syntax errors, but it can't spot mistakes like this:
(define (area-of-disk radius) (* pi radius radius)) (define (area-of-ring inner outer) (- (area-of-disk inner) (area-of-disk outer)))If you read over your own program carefully before hitting the "Syntax Check" or "Execute", you'll find not only syntax errors but more subtle logic errors like the above.