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.
- Place this solution in a BlueJ project named inlab8
- Print out all of the source code for the project
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.
- Describe what happens when you give the program the name
of a file that does not exist.
- Describe what happens when you give the program a file that contains
no html tags at all.
- 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.
- How can the Javadoc comments be improved?
- How can the commenting in general be improved?
- How can the indentation be improved?
- How can the meaningfulness of the names be improved?
- Point out any redundant code.
- Point out any code that is not clearly written.
- How can the class design be improved?
- Describe in English how the authors are maintaining the
tags in sorted order.
- Did the authors maintain sorted order using the best technique possible?
If not, describe what they should have done.
- Is the Tag class being used properly? If not, explain what
can be done to improve it.
- Describe one other weakness of the code.
- Describe one other strength of the code.
Conclusion - 1/2 point each
- What single thing most impresses you about the solution
that you evaluated?
- 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:
- The word processed document that you created. Be sure
that your names are on it.
- The printout of the other team's code that contains your
handwritten comments.
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!