Refactoring with AI: Introducing a State Pattern using a coding agent
10/04/2026
Introduction. This is a snapshot of an intermediate step of a kata we use to practise specification testing and test doubles[1]. The Course class presents a case of the temporary field code smell, which occurs when a field is set only at certain times and is null or unused at...