2005-10-24

Shooting Yourself in the Foot

Shooting Yourself in the Foot: "Python: You create a gun module, a gun class, a foot module and a foot class. After realising you can't point the gun at the foot, you pass a reference to the gun to a foot object. After the foot is blown up, the gun object remains alive for eternity, ready to shoot all future feet that may happen to appear."

An old classic, revised and refreshed for at least one fancy-dancy new-fangled language from 1990. I thought it was funny.

No comments: