Tangentially related, I've been thinking about how it is somewhat difficult to describe state machines in regular textual code, and it would be nice to have a drag-and-drop visual interface for mapping out the states and transitions, then tie regular code to the transition events.
Is there anything like that out there? Or a good open source diagramming library that might lend itself to prototyping this?