Josh's Site (www.joshbeckman.org) home / notes / pike-s-rules-1-and-2-restate-tony-hoare-s-famous-maxim-prem 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 10.05 Data 10.08 Software Rob Pike's 5 Rules of Programming 2023, November 03 Edit Comment/Reply via email Widgets Network Graph Legend Insight This widget generates “insights” about a post - you can read about how it works. Generating Keyboard Shortcuts Key Action o Source e Edit i Insight r Random s or / Search Close www.joshbeckman.org/notes/620961376