Why Developers Never Use State Machines

The problem is that you almost never create an object fully formed with all the behaviour it is ever going to need, rather you build it up over time. The same is true for the “states” that a state machine candidate object can be in. So, early on you don’t feel like your objects’ state machine behaviour is complex enough to warrant a “full-blown” state machine (YAGNI and all that jazz), but later on – when it IS complex enough – you feel like you’ve invested too much time/effort to replace it with something that has equivalent functionality. It’s a bit of a catch-22. It’s overkill and by the time it’s not, it’s too late.

Source: ‘Why Developers Never Use State Machines‘.

2-06-2016 9.58 | Door: Het dochtertje van onze stagiaire | Categorie: Computerij, Losse skakels

Reactieveld gesloten.


Opinieleiders.nl © 1999 - 2019 Alle rechten voorbehouden
Contact   Valid XHTML 1.0 TransitionalValid CSS!KuijkStrip over de zinloosheid van webloggen, onder andere
WordPress 4.7.16 RSS-feed/RSS-feed reacties