journal for Practice_ Object Calisthenics + TDD + Advent of Code
Remark about (5) One Dot Per Line Constructors should count as a dot, as if they were written like this:
ExpensePair.new(...) final ExpensePair firstPair = new ExpensePair(expenses.get(0), expenses.get(1)); final Expense firstExpense = expenses.get(0); final ExpensePair firstPair = new ExpensePair(firstExpense, expenses.get(1)); final Expense firstExpense = expenses.get(0); final Expense second = expenses.get(1); final ExpensePair firstPair = new ExpensePair(firstExpense, second); Remark about (5) One Dot Per Line works well with 7) Keep All Entities Small this forces me to extract variables but that quickly bumps into 7) Keep All Entities Small (5 lines/method) forcing an extract method or forcing a better design...