Debugging: Finding errors
A good way to learn to program is to do the following for every program:
- Get the sample program to work.
- Break it, find out what error messages you get.
- Modify it. Make it do something slightly different.
- Erase it, then try to rewrite it without looking at your notes.