Is Worse Better?
14 hours ago
- #Programming Paradigms
- #Common Lisp
- #Software Design
- Richard Gabriel's essay 'Worse is Better' contrasts the 'MIT approach' (correctness, consistency, simplicity, completeness) with the 'New Jersey approach' (simplicity prioritized over correctness, consistency, and completeness).
- The MIT approach emphasizes correctness and completeness, while the New Jersey approach prioritizes simplicity of implementation.
- An experiment compared the two approaches using different prompts for LLM-generated Common Lisp solutions to Advent of Code problems.
- Gemini analyzed the solutions and preferred the MIT approach for its robustness, clarity, and maintainability.
- The MIT solution used iterative algorithms (BFS and bottom-up DP), while the New Jersey solution used recursive DFS with memoization.
- The MIT solution was deemed superior due to its immunity to stack overflow, better readability, and predictable performance.