Last updated: Mar 25, 26 00:28 UTC | Permalink

8 - Code-Level Design Principles

Learning Objectives:

This lecture is about writing code that other people will be able to understand, reuse, and modify. We’ve distilled this down to five general program-design princples which should be best practices for effective programmers:

  • Use Names and Indentations Wisely
  • Make Your Data Mean Something
  • One Method/One Job
  • Don’t Repeat Yourself
  • Identify and Use Good Abstractions

In this lecture, you will learn to:

  • Describe the purpose of our best practices for code-level design
  • List 5 principles for designing readable code, with examples
  • Identify some violations of the practices and suggest ways to mitigate them

Important Dates:

  • Individual Project2 Due Wednesday, February 4 by 11am (EST)

Lecture Slides:

Activity

Resources


© 2025-26 Adeel Bhutta, Robert Simmons and Mitch Wand. Released under the CC BY-SA license