Monday 22 September 2008

Code Review!

1. Use Dry runs to determine algorithm logic

a dry run is a mental run of an algorithm, sometimes expressed in pseudocode, where the computer scientist examines the algorithm's procedures one step at a time. In both uses, the dry run is frequently assisted by a table (on a computer screen or on paper) with the program or algorithm's variables on the top.

2. Retain functional responsibilities

Use local variables instead of instance variables to help retain functional responsibilities.

No comments: