[thelist] Tip -- Object Oriented Programing

Anthony Baratta Anthony at Baratta.com
Tue Jul 4 14:02:22 CDT 2000


<TIP AUTHOR="Anthony Baratta" SUBJECT="Object 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 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.

 From June 15, 1999 Defense Science and Technology Organization
Lecture Series, Melbourne, Australia, and staff reports

</TIP>

OK I owe for this.....LOL

<TIP Author="Anthony Baratta" SUBJECT="Redirects with Apache">
Have you been hosting a site for a friend or client that now has their worn domain
name.

e.g. you gave them www.personalsite.com/friend and now 
	they own www.myfriend.com?

You can use Apache to redirect people to their new site quickly and easily AND it
will redirect to the page the browser is requesting, not just the domain itself.

e.g. a request for www.personalsite.com/friend/pagetwo.html is redirected to
	 www.myfriend.com/pagetwo.html.

Create a .htaccess file or add this to your current one, in your web root directory:

  Redirect /friend http://www.myfriend.com

Quick easy and painless (If you replace /friend and www.myfriend.com with the proper
info ;-).
</TIP>
-- 
Anthony Baratta
President
KeyBoard Jockeys
                    South Park Speaks Version 3 is here!!!
                       http://www.baratta.com/southpark
                              Powered by Tsunami




More information about the thelist mailing list