SE Radio 577: Casey Muratori on Clean Code, Horrible Performance?

Topics covered
Popular Clips
Episode Highlights
Readability Debate
The debate over code readability often centers on the trade-offs between clean code practices and performance. argues that while class hierarchies might seem more readable, they can obscure the actual operations of a program, leading to performance issues 1. He believes that procedural code, when written well, can be just as readable and more performant. questions whether hiding implementation details truly aids understanding, to which Casey responds that it often complicates debugging and comprehension 2.
I tend to like code that reads like what it does, because to me, that's the most. When I think about code readability, I don't think about just, I think I know what the code does. I want to actually know what the code does.
---
Clean Code
Clean code principles are often praised for enhancing code maintainability and understandability. However, challenges this notion by suggesting that these principles do not always lead to the most performant code 3. He argues that many examples of clean code do not attempt to optimize procedural code for readability and performance simultaneously. notes that Casey's critique has sparked significant debate within the software community, highlighting the polarizing nature of his views 4.
There were so many arguments between people that did not involve me that came out of this video that that seemed to be the biggest actual result.
---
Cognition vs. Performance
The balance between developer cognition and code performance is a contentious issue. questions the effectiveness of practices that claim to enhance cognition, arguing that they often fail to deliver in real-world scenarios 5. He points out that despite claims of saving development time, many systems require extensive rewrites for performance improvements. highlights the common belief that modern computing power negates the need for performance optimization, a notion Casey disputes by emphasizing the importance of efficient code 6.
People claim that they're saving development time, but then you look at their history and they've had to throw out their entire system, not once, not twice, but oftentimes three or four times in the space of ten years for performance.
---
Related Episodes


SE-Radio Episode 357: Adam Barr on Code Quality
Answers 383 questions

SE Radio 554: Adam Tornhill on Behavioral Code Analysis
Answers 383 questions

SE-Radio Episode 268: Kief Morris on Infrastructure as Code
Answers 383 questions

SE Radio 637: Steve Smith on Software Quality
Answers 383 questions

SE-Radio Episode 251: Martin Klose on Code Retreats
Answers 383 questions

SE-Radio Episode 310: Kirk Pepperdine on Performance Optimization
Answers 383 questions

SE Radio 618: Andreas Møller on No-Code Platforms
Answers 383 questions

SE Radio 628: Hans Dockter on Developer Productivity
Answers 383 questions

SE-Radio Episode 262: Software Quality with Bill Curtis
Answers 383 questions

SE-Radio Episode 295: Michael Feathers on Legacy Code
Answers 383 questions

SE Radio 597: Coral Calero Muñoz and Félix García on Green Software
Answers 383 questions

SE-Radio Episode 324: Marc Hoffmann on Code Test Coverage Analysis and Tools
Answers 383 questions

SE Radio 617: Frances Buontempo on Modern C++
Answers 383 questions

SE Radio 638: Nick Tune and Jean-Georges Perrin on Architecture Modernization
Answers 383 questions













