πŸ’Ύ Archived View for gmi.noulin.net β€Ί unixKoans β€Ί two_paths.gmi captured on 2023-01-29 at 10:39:11. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-06-12)

🚧 View Differences

-=-=-=-=-=-=-

Master Foo Discourses on the Two Paths

Prev

Next

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Master Foo Discourses on the Two Paths

Master Foo instructed his students:

β€œThere is a line of dharma teaching, exemplified by the Patriarch McIlroy's mantra β€˜Do one thing well’, which emphasizes that software partakes of the Unix way when it has simple and consistent behavior, with properties that can be readily modeled by the mind of the user and used by other programs.”

β€œBut there is another line of dharma teaching, exemplified by the Patriarch Thompson's great mantra β€˜When in doubt, use brute force’, and various sutras on the value of getting 90% of cases right now, rather than 100% later, which emphasizes robustness and simplicity of implementation.”

β€œNow tell me: which programs have the Unix nature?”

After a silence, Nubi observed:

β€œMaster, these teachings may conflict.”

β€œA simple implementation is likely to lack logic for edge cases, such as resource exhaustion, or failure to close a race window, or a timeout during an uncompleted transaction.”

β€œWhen such edge cases occur, the behavior of the software will become irregular and difficult. Surely this is not the Way of Unix?”

Master Foo nodded in agreement.

β€œOn the other hand, it is well known that fancy algorithms are brittle. Further, each attempt to cover an edge case tends to interact with both the program's central algorithms and the code covering other edge cases.”

β€œThus, attempts to cover all edge cases in advance, guaranteeing β€˜simplicity of description’, may in fact produce code that is overcomplicated and brittle or which, plagued by bugs, never ships at all. Surely this is not the Way of Unix? ”

Master Foo nodded in agreement.

β€œWhat, then, is the proper dharma path?” asked Nubi.

The master spoke:

β€œWhen the eagle flies, does it forget that its feet have touched the ground? When the tiger lands upon its prey, does it forget its moment in the air? Three pounds of VAX!”

On hearing this, Nubi was enlightened.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Master Foo and the Script Β Master Foo and the KiddieΒ  Methodologist

Prev

Home

Next