title: uses for state machines
body: <p>In what areas of programming would I use state machines ? Why ? How could I implement one ?</p>
  
  <p><strong>EDIT:</strong> please provide a practical example , if it's not too much to ask .</p>