Lecture 3: Programming Style
Background Material
- Previous Programming Experience (any language)
- C, C++, Java
Reading
Topics
- Problem of the day - write a filter that prints the unique
file names in the current directory and all of its subdirectories.
How many are there? List the unique file names with the number of times
each filename occurs.
- Programming Style
- Names
- Expressions and Statements
- Consistency and Idioms
- Function Macros
- Magic Numbers
- Comments
Lecture Notes
Programs
Resources
- Eventually will add database of programs illustrating good and bad
style.
Lab
- Exercises in chapter 1 of the text.
Assignments
Created: Jan. 18, 2005 (revised ) by jjohnson@cs.drexel.edu