Post #13107 84 Apr 19, 2026, 22:29 UTC Making illegal state unrepresentablehttps://blog.frankel.ch/illegal-state-unrepresentable/https://redd.it/1spwmis@programmingreddit A Java geek Making illegal state unrepresentable A couple of years ago, I wrote that The Builder pattern is a finite state machine!. A state machine consists of states and transitions between them. As a developer, I want to make illegal states unrepresentable, i.e., users of my API can’t create non-existent…