Back to the email
P
Patrick Bucher
March 14, 2025, morning

Kent Beck wrote “All of the tricky code for rounding to three decimal digits […]” in the introduction to Test Driven Development: By Example. It must have been a big issue in said project. This is a literal one-liner: round(x*100)/100. But you need to know the domain, which is basic arithmetic in this case. Is there something in the OOP/Agile crowd that makes them look at every issue from the perspective of modeling classes and objects instead of from the domain?