#builderpattern — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #builderpattern, aggregated by home.social.
-
A couple of years ago, I wrote that The #Builderpattern is a finite #statemachine! 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 transitions. My hypothesis is that only a static typing system allows this at compile-time. Dynamic typing systems rely on runtime validation.
In this blog post, I will show that it holds true, with a caveat.
-
A couple of years ago, I wrote that The #Builderpattern is a finite #statemachine! 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 transitions. My hypothesis is that only a static typing system allows this at compile-time. Dynamic typing systems rely on runtime validation.
In this blog post, I will show that it holds true, with a caveat.
-
Ja klar, liebe #Java-Typen!
Lasst mich komplexe Objekte immer im #BuilderPattern aufbauen!
Wer braucht schon IDE-Unterstützung die mir sagt welche Eigenschaften noch gesetzt werden müssen, wenn man auch 100x den Compiler und Tests laufen lassen kann, bis alle NullPointerExceptions dann irgendwann gelöst sind?
/s
-
Ja klar, liebe #Java-Typen!
Lasst mich komplexe Objekte immer im #BuilderPattern aufbauen!
Wer braucht schon IDE-Unterstützung die mir sagt welche Eigenschaften noch gesetzt werden müssen, wenn man auch 100x den Compiler und Tests laufen lassen kann, bis alle NullPointerExceptions dann irgendwann gelöst sind?
/s