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 design maxims every reviewer quotes — what each actually claims, and the ways each is routinely misapplied.
41 total questions
Card #1
What does DRY stand for, and what exactly must not be repeated?
Card #2
What is the most common way DRY is misapplied?
Card #3
What is the 'rule of three' in relation to duplication?
1. DRY is fundamentally about avoiding duplication of:
2. Two validation functions have identical bodies but enforce unrelated business rules. The best action is usually to:
3. YAGNI most directly argues against:
1. DRY stands for Don't Repeat ___.
Hint: Second person
2. YAGNI stands for You Aren't Gonna ___ It.
Hint: About future requirements
3. The rule of ___ tolerates duplication until the third occurrence before extracting an abstraction.
Hint: A number