My talk will be on using state machines in web applications. I will
have a demonstration of how to use the Ragel state machine generator
in an ActiveRecord model (and by extension in a Rails application) or
in a DataMapper model, but I will also be talking about using Acts As
State Machine (which someone pointed out to me is now in Rails core).
State machines are a concise and very robust way of encoding your
business logic. Using a state machine can provide an elegant solution
to the "back button" problem in designing web applications and they
are a great way of keeping track of tasks you want to do outside the
request/response cycle, like sending confirmation emails.
State machines are very practical, lots of fun and really not that
scary. In fact, it's very likely you already use state machines on a
daily basis without realizing it: if you've ever written a regular
expression, you've used a state machine. Now imagine having something
as powerful as a regular expression but for all your business logic.
On Jul 4, 11:43 am, "
qamir.huss...@gmail.com"