Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I (as a Java developer) use state machines often - and know other developers who do same too. I use mostly enums (though there are other ways of achieving it), as explained in this post:

Java Secret: Using an enum to build a State machine: http://vanillajava.blogspot.com/2011/06/java-secret-using-en...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: