Heuristic: Composite Simpler Than the Sum of Its Parts
February 2nd, 2021
Heuristic: Composite Simpler Than the Sum of Its Parts
hides enough information
moneyEditor.getAmountField().setText(String.valueOf(money.amount());
moneyEditor.getCurrencyField().setText(money.currencyCode());
moneyEditor.setAmountField(money.amount());
moneyEditor.setCurrencyField(money.currencyCode());
moneyEditor.setValue(money);
(src: Book: Growing Object Oriented Software, Guided By Tests - Steve Freeman & Nat Pryce)