PMI
DASSM · Question #107
When changing legacy code, you should:
The correct answer is D. Change the code, then add a test. See the full explanation below for the reasoning.
Question
When changing legacy code, you should:
Options
- AAdd a test first, then change it
- BRewrite the code instead of changing it
- CDelegate the task to someone else
- DChange the code, then add a test
How the community answered
(53 responses)- A13% (7)
- B8% (4)
- C4% (2)
- D75% (40)
Community Discussion
No community discussion yet for this question.