next up previous
Next: Robustness Up: Assignment 7: Process Objects Previous: Assignment 7: Process Objects

Readability

1.
If your translator/evaluator from last week didn't work completely, get it working, using my solutions if you want to.

2.
Since it has been a few days since you worked with this code, look it over and identify places that are hard to read, either because the syntax has gotten hairy or the logic is convoluted.

3.
Do whatever you can think of to make the program easier to read (and thereby easier to make correct). Some suggestions: create new methods to reduce nested structure. Use indentation and spacing to clarify structure.

4.
Add comments at the beginning of every method stating the preconditions for that method (even if there are none). Add any additional comments in places where there is something non-obvious happening.



Allen B. Downey
1998-11-01