My latest posts can be found here:
Previous blog posts:
Additionally, some earlier writings:
So we had breakfast there, and if we'd been out during the day and wanted an early night, we'd have dinner there as well. There was enough variety for this to be OK for the few days required.
I say it was a restaurant, but actually it was a canteen. There was a counter where you took a tray and passed along, collecting cakes and desserts, until you got to the till where you ordered any hot food and hot drinks, and paid. The hot drinks were provided immediately, you were given a table number indicator, and you went to sit at a table. Then when your food was ready, it was brought to you.
Suppose you are a member of staff. You can't remember everything about every customer, but you can periodically scan the tables and immediately know the state:
On the last two occasions we were there, when they brought our food I gave them the table number indicator. Cue deep confusion ... that is not supposed to happen. But I explained that we'd prefer to be left alone, and that if we needed anything we'd come and ask.
It was apparent on the faces of the staff that this was completely unexpected. Most likely they never expected members of the public to pay attention to the system and how it worked.
But it was a real-life example of a finite-state machine, beautifully designed, extremely effective, and it even coped gracefully when faced with something unexpected.
Send us a comment ...
Links on this page