toaster to fry eggs was RE: [wellylug] Aims or Objectives

Jeremy Naylor jeremy.naylor at r2.co.nz
Tue Apr 20 15:19:46 NZST 2004


Hey Jonathan,

Saying/doing these kind of jokes *now* is alright, but not when we're 
getting new people joining the LUG (especially from the upcoming 
installfest) asking for help and people give them these kind of responses 
though!

What help are these kind of responses when people who genuinely need help 
(with any Linux questions/problems they might have) going to be?

Hope this makes sense.

No offense intended.

Thanks,

Jeremy Naylor.
Video Loser.

At 03:02 PM 4/20/2004 +1200, you wrote:

>// Let's do it in C++ then (too much spare time today...!)
>
>#include <toaster>
>#include <food>
>#include <crockery>
>#include <memory>
>#include <threads>
>
>using namespace std;
>using namespace threads;
>using namespace kitchen;
>
>main()
>{
>   try {
>     auto_ptr<Eggs*> eggs(new FreeRangeEggs());
>     auto_ptr<Oil*> oil(new OliveOil());
>     auto_ptr<Bread*> slice(Vogels::getSlice());
>
>     auto_ptr<Toaster*> toaster(new Toaster());
>     auto_ptr<Pan*> pan(new Pan());
>     auto_ptr<Plate*> plate(new Plate(PlateType.Aluminium));
>
>     thread t(toaster->toast(slice, Toaster::MAX_BROWNNESS));
>     t.join();
>
>     // heat the oil at 80% heat, checking every 5 seconds
>     pan->add(oil);
>     while (! oil->hot) pan->heat(0.8, 5);
>
>     pan->add(eggs);
>     while (! eggs->done()) pan->heat(0.6, 10);
>
>     // wait for toast if necessary
>     pan->keepwarm();
>     if (thread.running(t)) thread.wait_for(t);
>
>     plate->add(slice);
>     pan->transfer(eggs, plate);
>   }
>
>   catch (KitchenOnFireException& ex) {
>     cout << "The kitchen is on fire." << endl;
>     try {
>       if (! deployFireExtinguisher()) {
>         dialFireService();
>         escape();
>       }
>     }
>     catch (...) {
>       panic();
>     }
>     return 1;
>   }
>
>   catch (BurntToastException& ex) {
>     cout << "Sorry, your toast is burnt." << endl;
>     openKitchenWindow();
>     return 1;
>   }
>
>   catch (...) {
>     cout << "Sorry, something unexpected happened." << endl;
>     return 1;
>   }
>
>   return 0;
>}
>
>
>--
>Wellington Linux Users Group Mailing List: wellylug at lists.naos.co.nz
>To Leave:  http://lists.naos.co.nz/mailman/listinfo/wellylug

Jeremy Naylor
Registered Linux user #308950
p: +64 21 374 689
e: jeremy.naylor at r2.co.nz
w: http://www.r2.co.nz/~jeremy
w: http://e-living.wellington.net.nz
-------------- next part --------------

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.656 / Virus Database: 421 - Release Date: 4/9/2004


More information about the wellylug mailing list