Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Codeless Code: Case 9 - Infinities

DZone's Guide to

Codeless Code: Case 9 - Infinities

· Java Zone
Free Resource

Find your next Integration job at DZone Jobs. See jobs focused on integration, or create your profile and have the employers come to you!

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.”

Find your next Integration job at DZone Jobs. See jobs focused on integration, or create your profile and have the employers come to you!

Topics:
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 DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

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

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}