CS 257: Software Design
Log Summarizer Rewrite
Rewrite your log summarizer programs based on the comments
you received in the code reviews and from the grader for the course. A few things
to think about:
- Make sure you parse the command line correctly, sending appropriate error
messages and usage reminders to standard error (System.err or sys.stderr or cerr,
depending on your programming language). In particular, if the user types the
wrong number of arguments, your program should not crash.
- Adhere to the specification. This includes the command-line specification
as well as the output format specification.
- Get the program to work right.
- Improve your naming, your code organization, your commenting strategy, etc., as
recommended in your code review.
- Use your language's built-in tools where appropriate (e.g. Python dictionaries,
Java HashMaps or TreeMaps, etc.) instead of re-inventing the wheel.
- Anything that bugged you about the original program? Fix it.
Have fun.