Humor The toaster.. This ones for you Ed

greenspun.com : LUSENET : TimeBomb 2000 (Y2000) : One Thread

The Parable of the Toaster For all you computer science nerds and associates...

Once upon a time, in a kingdom not far from here, a king summoned two of his advisors for a test. He showed them both a shiny metal box with two slots in the top, a control knob, and a lever. "What do you think this is?" One advisor, an electrical engineer, answered first. "It is a toaster", he said. The king asked, "How would you design an embedded computer for it?" The advisor said, "Using a four-bit microcontroller, I would write a simple program that reads the darkness knob and quantifies its position to one of 16 shades of darkness, from snow white to coal black. The program would use that darkness level as the index to a 16-element table of initial timer values. Then it would turn on the heating elements and start the timer with the initial value selected from the table. At the end of the time delay, it would turn off the heat and pop up the toast. Come back next week, and I'll show you a working prototype."

The second advisor, a software developer, immediately recognized the danger of such short-sighted thinking. He said, "Toasters don't just turn bread into toast, they are also used to warm frozen waffles. What you see before you is really a breakfast food cooker. As the subjects of your kingdom become more sophisticated, they will demand more capabilities. They will need a breakfast food cooker that can also cook sausage, fry bacon, and make scrambled eggs. A toaster that only makes toast will soon be obsolete. If we don't look to the future, we will have to completely redesign the toaster in just a few years." "With this in mind, we can formulate a more intelligent solution to the problem. First, create a class of breakfast foods. Specialize this class into subclasses: grains, pork, and poultry. The specialization process should be repeated with grains divided into toast, muffins, pancakes, and waffles; pork divided into sausage, links, and bacon and poultry divided into scrambled eggs, hard boiled eggs, poached eggs, fried eggs, and various omelette classes." "The ham and cheese omelette class is worth special attention because it must inherit characteristics from the pork, dairy, and poultry classes. Thus, we see that the problem cannot be properly solved without multiple inheritance. At run time, the program must create the proper object and send a message to the object that says, 'Cook yourself.' The semantics of this message depend, of course, on the kind of object, so they have a different meaning to a piece of toast than to scrambled eggs." "Reviewing the process so far, we see that the analysis phase has revealed that the primary requirement is to cook any kind of breakfast food. In the design phase, we have discovered some derived requirements. Specifically, we need an object-oriented language with multiple inheritance. Of course, users don't want the eggs to get cold while the bacon is frying, so concurrent processing is required, too." "We must not forget the user interface. The lever that lowers the food lacks versatility, and the darkness knob is confusing. Users won't buy the product unless it has a user-friendly, graphical interface. When the breakfast cooker is plugged in, users should see a cowboy boot on the screen. Users click on it, and the message 'Booting Windows 98' appears on the screen. (Win98 should be out by the time the product gets to the market.) Users can pull down a menu and click on the foods they want to cook." "Having made the wise decision of specifying the software first in the design phase, all that remains is to pick an adequate hardware platform for the implementation phase. An Intel-Pentium MMX with 48MB of memory, a 1.2GB hard disk, and a SVGA monitor should be sufficient. If you select a multitasking, object oriented language that supports multiple inheritance and has a built-in GUI, writing the program will be a snap." The king wisely had the software developer be-headed, and they all lived happily ever after.

In an article, didnt Ed talk about kitchen appliances sending e-mails to each other?

-- Maria (anon@ymous.com), August 06, 1999

Answers

Maria -

I think the original comment on that appears in Software Solutions back in May 1996, and Ed was quoting a colleague, Scott Guthery, about toasters having IP addresses.

-- Mac (sneak@lurk.hid), August 06, 1999.


Speaking of kitchens:

INSTRUCTIONS FOR MICROSOFT'S NEW TV DINNER PRODUCT

You must first remove the plastic cover. By doing so you agree to accept and honor Microsoft rights to all TV dinners.

You may not give anyone else a bite of your dinner (which would constitute an infringement of Microsoft's rights). You may, however, let others smell and look at your dinner and are encouraged to tell them how good it is.

If you have a PC microwave oven, insert the dinner into the oven. Set the oven using these keystrokes:

\mstv.dinn.//08.5min50%heat//

Then enter:

ms//start.cook_dindin/yummy\|/yum~yum:-)gohot#cookme.

If you have a Mac oven, insert the dinner and press start. The oven will recognize the MS TV Dinner, configure itself, and cook the dinner automatically.

If you have a Unix oven, insert the dinner, enter the ingredients of the dinner (found on the package label), the weight of the dinner, and the desired level of cooking and press start. The oven will calculate the time and heat, and cook the diner precisely.

Be forewarned that Microsoft dinners may crash, in which case your oven must be restarted. This is a simple procedure. Remove the dinner from the oven and enter:

ms.nodamn.good/tryagain\again/again.crap.

This process may have to be repeated. Try unplugging the microwave and then doing a cold reboot. If this doesn't work, contact your hardware vendor.

Many users have reported that the dinner tray is far too big, larger than the dinner itself, having many useless compartments, most of which are empty. These are for future menu items. If the tray is too large to fit in your oven you will need to upgrade your equipment.

Dinners are only available from registered outlets, and only the chicken variety is currently produced. If you want another variety, call MicrosoftHelp and they will explain that you really don't want another variety. Microsoft Chicken is all you really need.

Microsoft has disclosed plans to discontinue all smaller versions of their chicken dinners. Future releases will only be in the larger family size. Excess chicken may be stored for future use, but must be saved only in Microsoft approved packaging.

Microsoft promises a dessert with every dinner after '98. However, that version has yet to be released. Users have permission to get thrilled in advance.

Microsoft dinners may be incompatible with other dinners in the freezer, causing your freezer to self-defrost. This is a feature, not a bug. Your freezer probably should have been defrosted anyway.

-- mabel (mabel_louise@yahoo.com), August 06, 1999.


Moderation questions? read the FAQ