Skip to content

Design-readiness checklist

Difficulty: Intermediate

Prerequisites

None. This page can be read on its own.

Key concepts

  • self-assessment
  • design workflow
  • clarification questions
  • acceptance criteria
  • ownership
  • failure contracts
  • test strategy
  • Which parts of the design workflow you can already do on your own, and which you can do only some of the time.
  • How to judge yourself by what you have done, not by how familiar a topic feels.
  • Which lesson sections to reread first, in a list built from your own marks.

The statements below follow the stages of the delivery framework and of how to approach a case study: from a vague request, through classes and their owners, to tests and the next change. Each statement describes something you do, such as “I can write acceptance criteria that someone else could turn into a test”, rather than something you know, such as “I understand requirements”. A thing you do can be checked; a feeling of understanding usually cannot.

This is a study aid. It is not a test, a certification, or a measure of professional skill. Nobody checks your marks, and a page of ticks proves nothing to anyone else. What it can do is show you, honestly, where to spend your next hour of study.

  1. Before the case studies, go through the list once. Do not look anything up. For each statement, read the “How to check yourself” line and mark:
    • Not yet if you have not done it, or could not do it now without help.
    • Sometimes if you have done it, but not every time, or only with the lesson open.
    • Confidently only if you have done it on a real or practice problem and could do it again without help.
  2. Use the results. Under the list, “Your results” names the lesson section behind every statement you marked “Not yet”, then those you marked “Sometimes”. Reread those first.
  3. After two or three case studies, go through the list again and change your marks. Statements that stay at “Sometimes” after a case study are the best guide to what to practise next.

When unsure between two marks, choose the lower one. Marking yourself down costs one reread; marking yourself up hides a gap until a design shows it.

If a group does not apply to your problem, for example concurrency in a program that runs on one thread, you can leave it unmarked. Unmarked statements are counted separately and are not listed as weak areas.

About this checklist.38 statements in 9 groups. For each one, chooseNot yet, Sometimes, or Confidently. Use the “How to check yourself” line rather than a feeling: mark “Confidently” only when you have done the thing, not when it sounds familiar. This is a study aid for deciding what to reread. It is not a test, a certification, or a measure of professional skill.

1. Requirements and clarification

  1. Given a vague request of a few sentences, I can write clarification questions that cover actors, scope, rules, volume and timing, and failure, and say which two or three would change the design most.

    How to check yourself: Take one request from the requirement-discovery exercises, write your questions in ten minutes, then compare with the model answer. For each question, write what you would build differently for two different answers. A question where both answers lead to the same design is not one of your top three.

    Lesson: From vague statements to clarification questions: rank questions by design impact

  2. I write an out-of-scope list next to the requirements, and for each excluded item I can say whether the design meets it at all, for example behind an interface with a stand-in.

    How to check yourself: Look at your last design. If there is no written out-of-scope list, mark this "not yet". If there is one, check that each entry says what the design does at that boundary.

    Lesson: Stakeholders, goals, scope, and exclusions: writing the scope

  3. When nobody can answer a question, I write the gap down as an assumption, with what it affects, how risky it is, and how it will be checked, instead of deciding it silently.

    How to check yourself: Reread a design you wrote and underline every number or rule that nobody gave you. Each one should appear in a written list of assumptions.

    Lesson: Assumptions versus confirmed requirements: the assumption register

  4. I can write acceptance criteria in Given / When / Then form with concrete values, so that someone else could write the test from the criterion alone.

    How to check yourself: Give one of your criteria to another person, or reread it a day later. If they would have to ask what "valid", "quickly", or "the right amount" means, the criterion is not yet testable.

    Lesson: Use cases, user stories, and acceptance criteria: Given / When / Then

  5. I can state at least one non-functional requirement as a measurable target, with a number, a unit, and the conditions it applies under, rather than "fast" or "scalable".

    How to check yourself: Write one for your current problem. Could a test or a measurement say whether it is met? If not, it is still a wish.

    Lesson: Functional and non-functional requirements: writing non-functional requirements

2. Domain modelling

  1. From a written problem, I can list the nouns and decide for each one whether it becomes a class, a data member, a value type, or nothing, with a reason for each decision.

    How to check yourself: Do this for one case-study request before reading the study, then compare your list with its class outline. Look at the nouns you dropped or promoted differently, and whether you can defend the difference.

    Lesson: Finding classes, data members, and member functions: decide what each noun becomes

  2. I can say which of my types are entities (identity that lasts through change), which are value objects (equal when their values are equal), and which are domain services, and my value objects check their values when they are constructed.

    How to check yourself: For each class in a design, write "entity", "value", or "service" next to it. If you cannot decide for one of them, or a value object can be built with an invalid value, mark this "sometimes" or "not yet".

    Lesson: Entities, value objects, and services: the three kinds at a glance

  3. For every line in my class sketch, I can say which relationship it is (composition, aggregation, association, dependency, or inheritance) and what that means for who creates and destroys the objects.

    How to check yourself: Label every line in one of your sketches. For each composition, point to the C++ member that owns the part.

    Lesson: Relationships between classes: the five relationships

  4. I can turn "exactly one", "zero or one", and "many" into C++ member types (a value or reference, std::optional, a container) and explain each choice.

    How to check yourself: Pick three relationships from a design and write the member declaration for each without looking anything up. Then check them against the table in the lesson.

    Lesson: Multiplicity and lifecycle: from multiplicity to C++ type

  5. Before writing code, I trace one main scenario through my classes, call by call, and use the trace to find missing data or a missing responsibility.

    How to check yourself: Write the trace as a numbered list of calls for one use case. If you have never found a gap this way, either the trace was too vague or you have not yet tried it.

    Lesson: Finding classes, data members, and member functions: trace one scenario

3. Responsibilities and boundaries

  1. For each class, I can state its responsibility in one sentence without "and", and name what it knows and which classes it works with.

    How to check yourself: Write a CRC card (class, responsibilities, collaborators) for each class in one design. A card that needs "and" or "manages" in its first line is a candidate to split or rename.

    Lesson: Objects, responsibilities, and collaborations: CRC cards

  2. I put each rule in the class that holds the data the rule needs, and for every business rule I can point to the one place in the code that enforces it.

    How to check yourself: List the business rules of one design. Next to each, write the single class and function that enforces it. Two places for one rule, or a rule enforced by a caller, is a gap.

    Lesson: Objects, responsibilities, and collaborations: give each responsibility to the object that knows

  3. When a class changes for more than one reason, I can name the role or person behind each reason and decide whether splitting the class helps or only adds files.

    How to check yourself: For a large class you have written, write next to each public member who would ask for it to change. Then decide, with a reason, whether to split.

    Lesson: The Single Responsibility Principle: name the actor behind every member

  4. I keep storage, clocks, networks, and other outside details behind interfaces that the core of the design owns, and I can name the one place where the real implementations are chosen and connected.

    How to check yourself: Check the #include lines of your core classes: none should name a database, file, or network library. Then find the function (often main) that creates the real implementations.

    Lesson: The Dependency Inversion Principle: where should an interface live?

4. C++ ownership and lifetimes

  1. For every pointer, reference, and smart-pointer member and parameter in my design, I can say who owns the object and what makes sure it lives long enough.

    How to check yourself: Go through the class declarations of one design and write "owns" or "observes" next to each such member and parameter. For each observer, write which owner keeps the object alive and why it outlives the observer.

    Lesson: References, pointers, and explicit ownership: reading ownership from signatures

  2. I hold members by value by default, use std::unique_ptr for one owner of a heap object, and can justify every std::shared_ptr by naming the owners that really share it.

    How to check yourself: Search one of your projects for shared_ptr. For each use, name the two or more owners whose lifetimes are independent. If you cannot, it is probably a single owner.

    Lesson: Smart pointers: when to use each

  3. My classes follow the Rule of Zero unless they manage a resource directly, and for each class I can say whether copying and moving make sense and what the compiler generates.

    How to check yourself: For each class in a design, write whether it should be copyable, movable, both, or neither. Then check that the members (for example a std::unique_ptr) give that result, or that the class says so with = delete or = default.

    Lesson: The Rule of Zero and the Rule of Five: when to use which rule

  4. I can draw my design’s ownership graph with "owns", "points to", and "names by id" edges, and say what happens to every reference to an object when that object is removed.

    How to check yourself: Draw it for one case study you have done. Pick the object most likely to be removed and follow every edge that points to it.

    Lesson: Ownership graphs and lifetime design: draw the graph with three kinds of edge

  5. I can spot a dangling observer: a reference, pointer, iterator, or std::string_view that is used after the object or container element it refers to is gone.

    How to check yourself: Build your tests with AddressSanitizer at least once. Then review every function that returns a reference or a view and write how long the result stays valid.

    Lesson: References, pointers, and explicit ownership: when an observer outlives the object

5. Error handling and invariants

  1. For each important class, I can write down its invariants, show that the constructor makes them true, and show that every public member function keeps them true.

    How to check yourself: Write the invariants as comments above the class. For each public member function, name the line that could break one and how the function prevents it.

    Lesson: Invariants and encapsulation: write the invariants down

  2. For each function that can fail, I can state its failure contract: which failures it reports, how (an error value or an exception), and what state the object is in afterwards.

    How to check yourself: Pick three functions that can fail and write the contract in one sentence each. If two similar functions report the same kind of failure in different ways without a reason, mark this "sometimes".

    Lesson: Errors and failure contracts: every function that can fail has a failure contract

  3. I can list the failure scenarios of the main use case, such as bad input, a missing item, a conflict, or an outside service that does not answer, and say what the system does in each.

    How to check yourself: Write the list before you write the happy-path code. Each scenario should end up with a test named after it.

    Lesson: Invariants and failure scenarios: listing failure scenarios

  4. I can say which exception-safety guarantee (basic, strong, or no-throw) each changing operation gives, and order its steps so that the guarantee holds if any step throws.

    How to check yourself: For one operation that changes two or more members, number each step that can throw. For each, write the object’s state if it throws there.

    Lesson: Exception safety and failure atomicity: the three guarantees

6. Patterns only where earned

  1. Before using a design pattern, I can name the variation or change it handles in this problem, and the simpler option I compared it with, such as a function, an enum class, a std::variant, or a lambda.

    How to check yourself: For each pattern in a design of yours, write one sentence: "This handles ..., which the requirements need because ...". If the sentence needs a future that nobody asked for, the pattern is not yet earned.

    Lesson: Pattern, or a simple function, value type, or standard facility: six questions to ask first

  2. I can take a pattern out of a design when it is not earning its place, and say what the removal saves and what it would cost later.

    How to check yourself: Try the exercises on the "Pattern or no pattern?" practice page, and check whether your answers name a cost on both sides.

    Lesson: When patterns hurt: question each pattern

  3. For the pattern I chose, I can describe a change to the requirements that would make it the wrong choice.

    How to check yourself: If you can only list benefits of your chosen pattern, mark this "not yet".

    Lesson: When patterns hurt: signs of overuse

7. Concurrency where relevant

If your design runs on one thread, say so in the design and skip this group; that statement is itself part of the design.

  1. I can say whether my design is used from more than one thread, and if so, list each piece of shared state, who writes and reads it, what it must agree with, and how it is protected.

    How to check yourself: Make the table from the lesson for your design: data, written by, read by, must agree with, protection. A row with an empty "protection" column is a data race waiting to happen.

    Lesson: Thread safety and synchronization: classify the shared state

  2. I can write a thread-safety contract for each shared class, saying which calls may run at the same time, and I know that a sequence of safe calls is not safe as a whole.

    How to check yourself: Find one place where your code reads a value and then acts on it in a second call. Is anything stopping another thread from changing it in between?

    Lesson: Thread safety and synchronization: thread-safety contracts

  3. I can list every place that holds two locks at once and show that they are taken together or in a written order, and I do not call unknown code, such as callbacks, while holding a lock.

    How to check yourself: Search your code for mutex locks and note which ones can be held at the same time. Run the tests under ThreadSanitizer, which reports lock-order problems even when nothing hangs.

    Lesson: Deadlocks and lock ordering: list every place that holds two locks

  4. I can describe how every background thread in my design is stopped and joined, and what happens to work that is still queued at shutdown.

    How to check yourself: Write a test that shuts the component down while work is queued. If you cannot say what the test should expect, the shutdown rule is not yet designed.

    Lesson: Asynchronous work, cancellation, and shutdown: shutting down

8. Testing and acceptance criteria

  1. I can map each requirement and acceptance criterion to at least one named test, and use the table to find requirements with no test and code that no requirement asks for.

    How to check yourself: Build the traceability table for one design. Count the empty rows in both directions.

    Lesson: Traceability from requirement to test: building the table

  2. I can say which of my tests are unit, acceptance, contract, and integration tests, and test each rule at the lowest level that can check it.

    How to check yourself: Label each test in one suite with its level. If most rules are only checked through the whole program, mark this "sometimes".

    Lesson: Testing strategy: the levels of testing

  3. I can point to the seams in my design where a test replaces time, files, or outside services, choose a fake, stub, spy, or mock for each, and prefer checking results over checking calls.

    How to check yourself: For one test with a double, ask: if the code reached the same result by different calls, would this test fail? If yes, it checks how, not what.

    Lesson: Test doubles, seams, and designing for testability: where a test can change the behaviour

  4. My tests give the same result on every run: they do not depend on the real clock, unseeded randomness, thread timing, or the order the tests run in.

    How to check yourself: Run the suite many times in a row and in random order if your test runner supports it. Any test that sometimes fails points to a hidden dependency.

    Lesson: Testing strategy: keeping tests deterministic

9. Change and extension

  1. Given a changed requirement, I can list which classes change, which stay the same, and why, before I edit any code.

    How to check yourself: Take the "When the requirements change" section of a case study, write your list first, then compare it with the study.

    Lesson: Incremental design evolution: a routine for each change

  2. I can show how two different answers to one clarification question lead to two different designs, and say what stays the same in both.

    How to check yourself: Pick your most important clarification question and sketch both designs in outline. If they come out the same, the question did not matter as much as you thought.

    Lesson: How answers change the design: the comparison

  3. I add an extension point only for a change that has happened or is clearly expected, and I can say what my design is not closed against.

    How to check yourself: For each interface with one implementation in your design, name the second implementation that someone has asked for. If there is none, ask whether the interface is needed yet, for example as a test seam.

    Lesson: The Open/Closed Principle: what this design is not closed against

  4. Before a change, I can make a preparing refactoring with all tests still passing, and then make the change as a separate step.

    How to check yourself: In your next change, commit or save the refactoring separately and run the tests between the two steps. If the tests had to change during the refactoring, it was not only a refactoring.

    Lesson: Incremental design evolution: the preparing refactoring

What the results mean, and what they do not

Section titled “What the results mean, and what they do not”

The summary is only as good as the honesty of the marks, and it measures your own view of yourself. Two things it cannot tell you:

  • Whether your designs are good. You can do every step and still make a poor choice. Only designing, building, testing, and having others review real code shows that.
  • How you compare with anyone else. There is no pass mark, no score out of a total, and no level. “Confidently” on every line is a reason to take on harder problems, not a qualification.