Josh Beckman (www.joshbeckman.org) Subscribe 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 and is often shortened to “write stupid code that uses smart objects”. Find the right data structures and the logic becomes easy. Rule 5 is akin to using types to ensure no illegal states can be expressed. Josh Beckman Reference Notessoftware, data Rob Pike's 5 Rules of Programming University of Texas in Austin 2023, November 03, Friday Permalink to 2023.NTE.609 Edit ← Previous Next → Note on Entity Component System - Wikipedia via wikipedia.org Note on Systemantics. The Systems Bible via John Gall and D.H. Gall Widgets Comments & Replies via email You can subscribe or follow or reply here: Network Graph Legend Keyboard Shortcuts Key Action o Source e Edit i Insight r Random h Home s or / Search Close www.joshbeckman.org/notes/620961376