πΎ 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
β¬ οΈ Previous capture (2022-06-12)
-=-=-=-=-=-=-
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
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