GOOD PROGRAMMING STYLE
- Make programs easy to read and understand.
- Use comments
- Do not use tricks
- Make programs easy to modify
- Top-down design
- Structured programming - no spaghetti code
- Self contained subroutines
- Keep programs short BUT do not sacrifice items 1 and 2 to do so
TIPS FOR WRITING PROGRAMS
- Think about how data will be stored in memory.
- Think about how to process data
- Start with big picture. Break into smaller parts until reduced to
- Use names instead of numbers