Practice hub
What this section is for
Section titled “What this section is for”Reading a lesson and agreeing with it is not the same as being able to use it. Practice closes that gap. Each kind of practice here asks you to do something the lessons describe: recall a rule, apply it to a new case, or make a design decision and defend it.
None of it is graded by anyone but you. A good result tells you which lessons you can apply; a poor one tells you where to reread. Neither is a certificate of skill: a quiz checks that you know and can apply the rules, and only designing, building, and reviewing real code shows that you can design a system.
Kinds of practice
Section titled “Kinds of practice”Exercises at the end of each lesson
Section titled “Exercises at the end of each lesson”Every lesson and case study ends with exercises. Each states a task, such as “change this class so that the new rule holds”, and has an explained answer behind a “Show the explained answer” button. Try the task first, on paper or in the example code, then compare. The answer explains why it works and, where designs differ, what the alternatives cost.
Concept quizzes
Section titled “Concept quizzes”Short multiple-choice questions that check the ideas of one or more sections. Every option, right or wrong, has its own explanation, and every question links to the lesson section it comes from. There are two kinds of question:
- Fact questions have one answer that follows from the rules in the lesson, such as which C++ type expresses “may be absent”.
- Judgement questions depend on trade-offs stated in the question. Where more than one answer can be defended, the question says so, and each defensible option says when it is the better choice.
At the end of a quiz, a summary lists the lesson sections behind the questions you missed, so you know what to reread.
Ready now
Section titled “Ready now”- Concept quiz: C++ foundations and modeling: 22 questions on the C++ foundations and modeling sections.
- Concept quiz: requirements, principles, and patterns: 25 questions on the requirements, principles, and patterns sections.
- Concept quiz: architecture, advanced design, and testing: 21 questions on the architecture, advanced design, and testing sections.
- Walkthrough: coffee-shop ordering kiosk: a design walkthrough that reveals the problem, the questions, the requirement choices and their consequences, two candidate designs, the chosen design, its tests, and a changed requirement, one stage at a time.
- Walkthrough: in-process rate limiter: an advanced walkthrough in the same stages, for a thread-safe token bucket with an injected clock, and tiers that change at run time.
- Requirement-discovery exercises: four short, vague requests to turn into clarification questions, assumptions, acceptance criteria, a non-functional requirement, and a failure case, each with a hidden model answer.
- Identify the design smell: eight short C++ snippets, each with one main design smell to name, the harm it does, and a refactoring, with a hidden answer showing the reworked code.
- Pattern or no pattern?: eight short design situations, some best without a pattern, some that need one, and some with two defensible answers, each with a hidden answer giving a recommended design, an alternative, and what would change the decision.
- C++ refactoring exercises: four refactoring tasks of rising difficulty, each with working but badly structured start code, characterization tests, and a hidden reference solution in small safe steps that passes the same tests.
- Design-readiness checklist: a self-assessment against the stages of the design workflow, best used before and after the case studies, that lists the lesson sections to revisit.
- Case-study extension challenges: one changed requirement per case study, with questions to settle, hidden hints, and hidden evaluation criteria that accept more than one design.
- The exercises at the end of every lesson and case study, linked from the sidebar.
Where your answers are kept
Section titled “Where your answers are kept”Quiz answers and checklist marks are saved only in this browser’s local storage, so that you can leave a quiz or the checklist and come back to it. Nothing is sent to a server, there are no accounts, and nothing is shared between devices or browsers. Some private browsing modes and browser settings block local storage, or clear it when the browser closes; the quizzes and the checklist still work then, but forget your answers when you leave the page or close the browser.
To remove saved answers, use the “Reset this quiz” button at the end of a quiz, or “Reset this checklist” at the end of the design-readiness checklist, or the reset on the My progress page, which removes read marks, bookmarks, quiz answers, and checklist marks together. Clearing this site’s data in your browser also removes them.
Without JavaScript, quizzes cannot check or save answers, but each question still shows its explained answers when you open “Show the explained answers”. The checklist can still be marked on screen or printed and ticked on paper, but its marks are not saved or summarized.