Document and Debug

Things to check for in your code:

1. Do the { and the } brackets line up for each structure (class, if, for, method, or while)? Do you have each { and } on a line by itself?  Have you done all you can to make it easy to see where the program flow of control will go next? (Indenting enough..  Lineing up code,  etc.)

2. Have you commented the purpose of each class and each method?

3. Have you commented ‘tricky’ calculations?

4. Have you commented ‘tricky’  comparisons?

5. Have you spaced each chunk by its function.. For example, have a blank line after all the variable declarations, before and after a while or if,  etc..

 

BuiltWithNOF

[Java at Evergreen] [Syllabus] [To Do List] [Lessons/Programs] [Evaluation/Review] [Help] [FAQ/GWIFO] [Discuss/Reports] [Resources] [Readings] [Portfolio] [Instructor]