Topic: Strange state machine
Once again there was a problem of implementation of process of the coordination and again speculation... Encountered amusing article: Why Developers Never Use State Machines http://www.skorks.com/2011/09/why-devel -machines/ Bodrenkoe the beginning: The problem is that you almost never create an object fully formed with all the behavior it is ever going to need, rather you build it up over time.... So, early on you do not feel like your objects' state machine behavior 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 was completed by the naive thesis: We seem to shy away from state machines due to misunderstanding of their complexity and/or an inability to quantify the benefits Formal machines all are clear. Here only... There were no to me still tasks under machines. Here my typical task - is the request, at it 3 serial stages of the coordination. A stage 3 but a state at the request one - "the request for the coordination". The coordination can ends with three variants - the request is coordinated, the request is not coordinated, the coordination is delayed. It already statuses of the request which it receives "coordination" after a stage. Further there are automatic coordination (if a row of conditions) and "bunched coordination" - (parallel) too with the rules is fulfilled - or for group coordinates the first or all group should coordinate. The automatic coordination is easy can work some times after "the manual coordination" and complete the group coordination, the coordination of a stage and the request coordination. And and in any cases generally all coordination can be transited and completed on the automatic machine right after coordination start. It would Seem the machine arises . But boundaries of entities are blurred. . The State of the request like also is connected to a state of process of the coordination, but details of process of the coordination can be very difficult and seriously change thus, without being reflected in any way in the logician connected to the request. And the request the machine happens not painfully that is necessary, if at the request simple system of states. In a similar situation the main sense machines - pretentiousness, somehow disappears. Or it is necessary under any other "corner" on this problem to look?