Writing Assignment: Handling Errors
Due: October 8
To get experience writing about computer science, and look at ways
of handling errors.
For this writing assignment, you will do the following:
- Find a source that describes how to use "assertions" in Java. Citing this
source, summarize what they do and how they can be used. Come up with your own
example that demonstrates to the reader how they work.
- Read pages 120–128 of "The Pragmatic Programmer" by Andrew Hunt and
David Thomas. A PDF of these pages is in the Canvas "Files" tab.
- Summarize this reading in about one page. In your summary, be sure
to highlight the most important points that the authors make.
- The reading talks about two ways of dealing with error situations:
exceptions and assertions. Write about when you would use one vs. the
other. Give a concrete example of a good example of using each.
- Write about the trickiest bug that you have dealt with before.
Here we mean something that goes wrong with a program as it's running —
not just a compiler error. Could this bug have been avoided, or dealt with
more easily by using assertions or exceptions?
- Write a short introduction and conclusion to this paper.
Your paper should:
- Be about 3 to 4 single-spaced pages long, using a 12-pt font and one
- You should cite the sources that you reference. These should include
the Programmer Programmer, and whatever source you find on assertions.
If you use another reference in writing your paper, you should cite that
too. The format for the citations doesn't matter.
- You should strive to write as clearly as possible, and use correct
grammar and spelling.
To submit your program, email the paper in PDF format to email@example.com.
Copyright © 2019 Ian Finlayson | Licensed under a Creative Commons Attribution 4.0 International License.