The language-agnostic foundation deck for engineers: SOLID, design heuristics, naming, functions, code smells and refactoring moves — the vocabulary that code review assumes you already have.
Add it to your projects to study it here with your progress saved. Try it plays a round and saves nothing. Clone makes your own copy that you can change.
You’re reading a free preview. Sign up to see every topic and question — and to play this deck as games.
The five principles collected under the SOLID acronym, stated precisely — including the two that are most often misquoted.
42 total questions
Card #1
What does the acronym SOLID stand for?
Card #2
State the Single Responsibility Principle.
Card #3
State the Open/Closed Principle, and name who introduced it.
1. In Martin's example, one Employee class holds calculatePay() for accounting and reportHours() for HR, sharing a helper. What risk does this create?
2. In which year did Barbara Liskov first present the substitution idea, in a conference keynote?
3. Under LSP, how may an overriding method's parameter and return types differ from the parent's?
1. Hexagonal architecture, also called ports and adapters, was introduced by Alistair ___.
Hint: Also a co-author of the Agile Manifesto.
2. Barbara Liskov received the Turing ___ in 2008.
Hint: Computing's best-known prize.
3. Martin's term for an interface whose methods serve several unrelated clients is a ___ interface.
Hint: The opposite of thin.