Many thanks to Tristan Morris for creating a beautiful illustrated hardcover print edition of the site |
|||||||||||||
(抱歉,本页尚未译为中文。) Java master Kaimu left three novices to debate the signature of a utility method that was needed. An hour later he found all three in his office, bruised and quite dissheveled. “Have you reached agreement?” asked Kaimu. The first novice, sporting a torn robe and cut lip, said: “We are even further from a peaceful conclusion than before. Each of us still prefers his own solution to the two others. We beg you to make the best choice on our behalf.” “Very well,” sighed Kaimu. “Among the three options offered, one was bold enough to reject our tradition of strong typing and declare the method to take an Object, so as to satisfy all potential users. Which of you proposed this?” The second novice proudly stepped forward. With a swift kick to the stomach, the master sent him tumbling out the door. Qi’s commentaryThe method that takes Object will cheerfully accept LeftFoot. Qi’s poemA perfect frog crouches on the table, An excerpt from The Codeless Code, by Qi (qi@thecodelesscode.com). Provided under the Creative Commons Attribution-NonCommercial 3.0 Unported License. |