Re:Java Secret: Using an enum to build a State machine
by smackfu on Tuesday July 12, 2011 @12:28PM
(#2755345)
I wish it had gone more into the advantages to this, over the standard method of switching on a state variable.
[ Parent
| on HN ]
Re:Java Secret: Using an enum to build a State machine
by peter_lawrey on Wednesday July 13, 2011 @10:32AM
(#2759067)
Using this approach could be more logical, esp as the number of methods per state increases. As you have more complex events and you want to group as State/Method rather than Method/State this approach is more appealying.