Of Kangaroos and Object-Oriented Programming.

Way off-topic, and allowed! General discussions on anything and everything.

Moderator: EG Members

Post Reply
User avatar
psi29a
Godo
Posts: 5386
Joined: Tue Jan 11, 2005 2:52 am
Location: The Lonely Mountain
Contact:

Of Kangaroos and Object-Oriented Programming.

Post by psi29a »

Thought you all might like this, my profressor in our intro computer science Object Oriented Programming class had this to say about code reuse:
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 the their scenarios, including
detailed landscapes and -- in the case of the Northern Territory's
Operation Phoenix -- herds of kangaroos (since groups of disturbed
animals might well give away a helicopters position).

The head of the Defense Science and Technology Organization's Land
Operations/Simulations division reportedly instructed developers to
model the local marsupials' movements and reaction to helicopters.

Being efficient programmers, they just re-appropriated some code
originally used to model infantry detachments 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
Americans nodded appreciatively . . . and 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 the remove "that" part of the infantry coding).

The lesson? Objects are defined with certain attributes, and any new
object defined in terms of the old one inherits all the attributes. The
embarrassed programmers had learned to be careful when reusing
object-oriented code, and the Yanks left with the utmost respect for the
Australian wildlife.

Simulator supervisors report that pilots from that point onwards have
strictly avoided kangaroos, just as they were meant to.
User avatar
Killfile
Flexing spam muscles
Posts: 587
Joined: Thu Jun 23, 2005 8:54 pm
Location: St. Petersburg - 1917
Contact:

Post by Killfile »

This really did happen, except the Kangaroos derived from an earlier instance of the class -- so they launched heat seaking beach balls.

Still.... must have been hella cool.
Carthago delenda est!

--Killfile @ [Nephandus.com]
Image
Eldo
Of The Abyss
Posts: 7435
Joined: Tue Jan 11, 2005 9:10 pm
Location: Yours or mine?

Post by Eldo »

Australians fuck up all the time. Nothing surprising here.
Image

I don't think half the toilet seats in the world are as clean as I should like; and only half of those are half as clean as they deserve. - tsubaimomo, July 26, 2010 3:00 am
User avatar
Arresty
Conversation Killer
Posts: 2750
Joined: Tue Jan 25, 2005 1:15 am
Location: The Light at the End of the Tunnel

Post by Arresty »

This is the funniest thing I have read in a while, especially cause I am a big fan of reusing code. :LOL: :LOL: :LOL:
User avatar
panasonic
Augh! Bright sky fire burn eyes!
Posts: 361
Joined: Thu Jan 13, 2005 11:40 pm
Location: the place above the US

Post by panasonic »

theres nothing wrong w/ reusing code, just cover ur tracks :P
"Education is the foundation upon which you build your entire lust for cash"-Onizuka

http://www.striporama.com/edits/main.html
User avatar
Arresty
Conversation Killer
Posts: 2750
Joined: Tue Jan 25, 2005 1:15 am
Location: The Light at the End of the Tunnel

Post by Arresty »

panasonic wrote:theres nothing wrong w/ reusing code, just cover ur tracks :P


Exactly. But I am picturing kangaroos with RPGs and it seems so funny to me.
User avatar
Daedelus
Augh! Bright sky fire burn eyes!
Posts: 329
Joined: Wed Apr 19, 2006 6:36 pm
Location: This Island Earth! (Can be yours, if the Price is Right!)

Post by Daedelus »

Reuse code, but for the love of god triple-check it! Not to mention... run a damn demo for yourself first!
User avatar
Arresty
Conversation Killer
Posts: 2750
Joined: Tue Jan 25, 2005 1:15 am
Location: The Light at the End of the Tunnel

Post by Arresty »

I have ran into some funny reuse code issues myself in the day, but thankfully I usually catch them before I turn in the assignment, but sometimes some errors you just don't find. Kangaroos shooting down helicopters I believe would be easy to find first time through. :lol: :lol: :lol:
Post Reply