![]() |
| | #1 |
| Microsoft. Who? Join Date: Mar 2002
Posts: 1,198
| Object Oriented - Funny story CARELESS CODE RECYCLING CAUSES KILLER KANGAS Mutant Marsupials Take Up Arms Against Australian Air Force The reuse of some object-oriented code has caused tactical headaches for Australia's armed forces. As virtual reality simulators assume larger roles in helicopter combat training, programmers have gone to great lengths to increase the realism of their scenarios, including detailed landscapes and - in the case of the Northern Territory's Operation Phoenix- herds of kangaroos (since disturbed animals might well give away a helicopter's position). The head of the Defense Science & Technology Organization's Land Operations/Simulation division reportedly instructed developers to model the local marsupials' movements and reactions to helicopters. Being efficient programmers, they just re-appropriated some code originally used to model infantry detachment reactions under the same stimuli, changed the mapped icon from a soldier to a kangaroo, and increased the figures' speed of movement. Eager to demonstrate their flying skills for some visiting American pilots, the hotshot Aussies "buzzed" the virtual kangaroos in low flight during a simulation. The kangaroos scattered, as predicted, and the visiting Americans nodded appreciatively... then did a double-take as the kangaroos reappeared from behind a hill and launched a barrage of Stinger missiles at the hapless helicopter. (Apparently the programmers had forgotten to remove that part of the infantry coding.) The lesson? Objects are defined with certain attributes, and any new object defined in terms of an old one inherits all the attributes. The embarrassed programmers had learned to be careful when reusing object-oriented code, and the Yanks left with a newfound respect for Australian wildlife. Simulator supervisors report that pilots from that point onward have strictly avoided kangaroos, just as they were meant to
__________________ -MethodMan- Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it. Homepage: http://www.freewebs.com/andy_moog/home.html |
| MethodMan is offline |
| | #2 |
| pronounced 'fib' Join Date: Aug 2002
Posts: 2,289
| of course that's not really a lesson against OOP but against hacking up one object to play the part of another. But I see that there is a point to that story. They basically decided that a trooper could be a kangaroo? interesting.
__________________ "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter |
| FillYourBrain is offline |
| | #3 |
| Refugee Join Date: Aug 2001
Posts: 2,052
| why does everyone have to pick on the kangaroos?
__________________ Please direct all complaints regarding this post to the nearest brick wall Have a nice day. |
| face_master is offline |
| | #4 |
| Seeking motivation... Join Date: May 2002
Posts: 537
| Thats a great story, I'm off to make my tetris blocks inherit uzi's from their great-granddaddy!
__________________ Couldn't think of anything interesting, cool or funny - sorry. |
| endo is offline |
| | #5 |
| train spotter Join Date: Aug 2001 Location: near a computer
Posts: 3,359
| Ahh So thats why they had to cull all the kangas on Pukapunia (military base). May be they are worried MS knows about it and may try a robo-kanga. After reading the news about the new XBox and how "Although Microsoft habitually experiments on the Australians, we do not think this is an experiment." MS spokeman. Could be worse Sony could clone Steve Erwin........by crikey!
__________________ "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter." Friedrich Nietzsche "I spent a lot of my money on booze, birds and fast cars......the rest I squandered." George Best "If you are going through hell....keep going." Winston Churchill |
| novacain is offline |
| | #6 |
| Registered User Join Date: Mar 2002
Posts: 175
| Actually read that story in a Pilot mag a few months ago, pretty funny all the same.
__________________ VC++ 6 |
| VBprogrammer is offline |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| new to object oriented!!!! | salmanriaz | C++ Programming | 2 | 03-12-2009 07:43 AM |
| Telling a shared_ptr not to delete object? | TriKri | C++ Programming | 5 | 08-16-2008 04:26 AM |
| circular doubly linked list help | gunnerz | C++ Programming | 5 | 04-28-2007 08:38 PM |
| Object Oriented Cube | Ti22 | Game Programming | 3 | 01-11-2005 08:18 PM |
| Object oriented job questions | Bubba | A Brief History of Cprogramming.com | 5 | 12-28-2004 05:06 AM |