MCQ
Q.
Which of these practices can lead to problems when refactoring code?
Correct Answer: D
Contributor Brad Irby points out that using the results of a database query directly, rather than having an intermediate class, is dangerous because an error due to a typo will not manifest itself at build time, only at runtime when the application may crash due to a missing field or bad data type. Refactoring code that has many external interfaces is dangerous because defects introduced by external systems will not be found during the build cycle since they will only occur during a full QA cycle or even in production.