Over a million developers have joined DZone.

Codeless Code: Case 9 - Infinities

· Java Zone

Navigate the Maze of the End-User Experience and pick up this APM Essential guide, brought to you in partnership with CA Technologies

Two monks of the Spider Clan were arguing whether the new input validation routine was caught in an infinite loop.

“How long has it been running?” asked the abbot.

“No more than thirty minutes,” said the pale thin monk.

“Yet no less than that either,” said the dark fat monk.

“And you have done nothing this whole time but wait for it to complete?” asked the abbot.

The monks bowed their heads in shame.

The abbot reported this to the Java master, who nodded. “Which of them believes that the loop is not infinite?”

“The pale thin one,” said the abbot.

“Then give him a skin of wine, for he is wise. No loop may be truly infinite. Someday the power will fail, the server will rust, the temple will crumble, and the sun will swallow the earth.”

Asked the abbot, “What of the dark fat one, who believes that the loop is infinite?”

“Give him two skins of wine, for he is wiser. To the user waiting at his browser, ten seconds is agony, a minute is an aeon, and anything longer is effectively an eternity. When the tiger mauls the antelope, the antelope does not question whether eight claws were used, or a million.”

Thrive in the application economy with an APM model that is strategic. Be E.P.I.C. with CA APM.  Brought to you in partnership with CA Technologies.

java ,the codeless code ,koans

Published at DZone with permission of Qi The Scribe, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}