💾 Archived View for gemini.susa.net › rob_pike_five_prog_rules.gmi captured on 2023-07-10 at 13:58:27. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
These turned up on HN, and they resonate with my approach to doing stuff in Gemini. Brute force, mostly Bash, simple code. These rules are particularly relevant in our plain-text world. Our processing power is many orders of magnitude greated than when these tools and techniques were first developed, and they were still useful back then.
So, always keep in mind that our audience on Gemini is small and will probably remain relatively small. Even an entry level VPS will likely outpace even the most unoptimised code. Don't worry about performance, don't worry about bots.
Pike's rules 1 and 2 restate Tony Hoare's famous maxim "Premature optimization is the root of all evil." Ken Thompson rephrased Pike's rules 3 and 4 as "When in doubt, use brute force.". Rules 3 and 4 are instances of the design philosophy KISS. Rule 5 was previously stated by Fred Brooks in The Mythical Man-Month. Rule 5 is often shortened to "write stupid code that uses smart objects".