Skip to content
Sharp

Refactoring · interview question

A teammate submits shaky types during refactors code. Which review comment is the strongest?

Multiple choiceHardchapter-10-curatedpremiumrefactoringtypes-during-refactors
Choose one answer
Answer and explanation

Correct answer

D. Make the rule clearer and easier to explain. Use types to make broad changes safer and to expose where the old contract was never actually clear.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. Refactoring without any contract guidance can devolve into manual grep and hope.

Test yourself on Refactoring

A free test with instant, explained results. No account needed.

Start free test
All Refactoring questions →