Last updated: Oct 16, 26 03:01 UTC | Permalink

9 - 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:

  • Preliminary Project Plan Due Friday Oct 16, 2026 by 5pm (ET)

Lecture Slides:

Resources


© 2026 Adeel Bhutta and Mitch Wand. Released under the CC BY-SA license

This site uses Just the Docs, a documentation theme for Jekyll.