Lesson 1: A review comment that started an argument · 8 min
Before you begin · The comment · What went wrong
Learners sign in, so every finish and score is recorded. 6 fields to fill in with your details.



Minutes are an estimate.
Before you begin · The comment · What went wrong
Principles · Which is cleaner? · Check
Smell to move · Name the smell · Check
The five · Which principle? · Check
Patterns in one line · Over-engineering · Style guide
A kind comment · Review checklist · Practice
Taken from the course itself.
What would have made the comment more helpful?
Answer: Naming the issue, giving a reason and suggesting an option. A helpful comment says what, why and what could be done instead.
Lesson 1: A review comment that started an argument
A function takes ten separate values. Which smell is it?
Answer: A long parameter list. Many separate values suggest the values belong together as a group.
Lesson 3: Common code smells and refactoring moves
A class changes whenever tax rules or email wording change. Which principle does it break?
Answer: Single responsibility. Two different reasons to change means two responsibilities.
Lesson 4: SOLID principles by example
A function with eight parameters and three flags.
Best response: Group related values and split by purpose.
Weaker responses: Add a ninth; Add comments; Leave it.
Comments from trainers
No comments yet. Tell other trainers how the course went.
Your comment
Comments are public. We remove spam and personal details.