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.
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. Which statement is the actual Interface Segregation Principle?
2. Who introduced the Open/Closed Principle?
3. A high-level OrderService directly constructs a MySqlOrderRepository. Which principle does this most directly violate?
1. The Open/Closed Principle says software entities should be open for extension but closed for ___.
Hint: The opposite of extension here
2. The ___ Substitution Principle requires that a subtype be usable anywhere its base type is expected.
Hint: Named after a computer scientist
3. Interface Segregation says clients should not be forced to depend on ___ they do not use.
Hint: What an interface declares