Design recipe for Java programs, version 2
Analysis and design (i.e. "decide what you want to do")
- Understand the assignment informally and write
down a purpose statement
- Write a function contract,
specifying what kind of information goes in and what kind comes out
- Write examples of how your
function will be used, with correct answers
(changed since version 1)
Coding ("do it")
- Write a class skeleton (if you don't already have one)
- Write a method skeleton
- Add an inventory to the method
skeleton
(changed since version 1)
- Fill in the Function Body
Compiling and testing ("check that you did it right")
- Compile and syntax-check the program.
- Style-check the program. (new
since version 1)
- Test and debug the program.
(changed since version 1)
For the next elaboration of this, see version 3.
Last modified:
Fri Jan 30 09:14:23 EST 2009
Stephen Bloch / sbloch@adelphi.edu