Lab 8

Program 3 Evaluation

March 9, 2006

Lab Partners

Everyone should work with one lab partner on this assignment.

Purpose

The purpose of this lab is to give you experience testing and evaluating someone else's code.

Preliminaries

At the start of the lab, your lab TA will provide you with another team's solution to Program 3. Each team's solution will be evaluated by one other team.

Please provide answers to the questions below using a word processor of your choice. You may supplement these answers by referring to the code directly and writing on the printout. (For example, you might mention that you have found redundant code in method A and method B of the Tag class. You can then circle the redundant code in these two methods and label the circle with the word "redundant" to help your lab TA easily see what you are talking about.)

Run Analysis - 1 point each

Answer these questions by running the program.

  1. Describe what happens when you give the program the name of a file that does not exist.
  2. Describe what happens when you give the program a file that contains no html tags at all.
  3. Find an interesting html file to test the program with. Is the output format correct? Are the results correct?

Code Analysis - 1/2 point each

Answer these questions by looking at the code.

  1. How can the Javadoc comments be improved?
  2. How can the commenting in general be improved?
  3. How can the indentation be improved?
  4. How can the meaningfulness of the names be improved?
  5. Point out any redundant code.
  6. Point out any code that is not clearly written.
  7. How can the class design be improved?
  8. Describe in English how the authors are maintaining the tags in sorted order.
  9. Did the authors maintain sorted order using the best technique possible? If not, describe what they should have done.
  10. Is the Tag class being used properly? If not, explain what can be done to improve it.
  11. Describe one other weakness of the code.
  12. Describe one other strength of the code.

Conclusion - 1/2 point each

  1. What single thing most impresses you about the solution that you evaluated?
  2. What is the one biggest piece of advice that you would give to the authors to improve the quality of their programs in the future?

What to Submit

Before the end of the lab period, hand in the following to your lab TA:

Also, please print out a second copy of the word processed document that you created. Give this copy to the authors of the program that you evaluated.

Before Lab Ends

Delete any BlueJ projects that you created and empty the recycle bin. Thanks.

Have a Fun and Safe Spring Break!