What is Programming?
Some common metaphors for software
- Knitting instructions
- Assembly instructions (e.g., for Lego set, piece of furniture,
- All of these are detailed instructions that
are supposed to be followed exactly and in order, so that
someone who knows nothing about the task can do it anyway.
Note: Programming languages are very
picky about structure, terminology, and syntax!
Another metaphor — Writing
- There are different languages
- There are different rhetorical styles
- Each rhetorical style has appropriate structures
There's a special method for the starting point of a program, called
||Methods (functions in many languages)|
- Instructors may have specific requirements for assignments
/** Class documentation comments, including
* Name, Date, etc.
public class ClassName
/** Comments describing method */
public returnType methodName ()
Alyce Brady, Kalamazoo College