Changing a report’s output format unexpectedly requires rewriting its tax calculations. What design concern does this expose?
Answer & explanation
Formatting and calculations may be inappropriately coupled.
If changing the output format requires rewriting tax calculations, the two responsibilities may be coupled. The scenario does not establish that tax rules are duplicated or that formatting should determine which rules apply.
The Pragmatic Programmer
Chapter 2 · A Pragmatic Approach
AI reviewed · sources pending · version 9
Generally accurate according to an AI review. Sources and this book association have not been verified.
