Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/26/13 10:53
Read: times


 
#189480 - State Machines, & Stuff that "works" - but is full of bugs!
Good article discussing Even-Driven programming, and why State Machines are often a very good "fit" for such tasks:

http://www.embedded.com/design/pr...nes-Part-1

To illustrate the type of mess that's all too easy to get into by doing Even-Driven programming without State Machines, it gives a classic example (on page 2) of a bit of software which basically "works" (sic), but is full of bugs:

When you launch the Visual Basic calculator ... you will certainly find out that most of the time it correctly adds, subtracts, multiplies, and divides (see Figure 2.1a). What's not to like? However, play with the program for a while longer and you can discover many corner cases in which the calculator provides misleading results, freezes, or crashes altogether.




List of 5 messages in thread
TopicAuthorDate
State Machines, & Stuff that "works" - but is full of bugs!            01/01/70 00:00      
   Indeed            01/01/70 00:00      
   Even ?             01/01/70 00:00      
      That's odd            01/01/70 00:00      
         I'd bet many have spotted it, but since it happens to us all            01/01/70 00:00      

Back to Subject List