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 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. Who coined the DRY principle?
2. YAGNI comes from which software development approach?
3. Code reads account.getBalance(), checks it against an amount, then calls account.setBalance(), instead of calling account.withdraw(amount). Which heuristic does this break?
1. The KISS principle is usually attributed to Lockheed engineer Kelly ___.
Hint: He led the Skunk Works.
2. The Law of Demeter is also called the principle of least ___.
Hint: A module knows as little as it can about others.
3. Fred Brooks drew the line between essential and accidental complexity in his 1986 essay No Silver ___.
Hint: The thing that kills werewolves.