326: Blow Your Redo Stack

Topics covered
Popular Clips
Questions from this episode
- Asked by 52 people
Episode Highlights
Comment Philosophy
The discussion on comment writing philosophy highlights the importance of clarity and purpose in code documentation. argues that comments should not merely explain what the code does, as this can lead to unnecessary clutter. Instead, they should focus on the reasoning behind the code, providing context that isn't immediately obvious from the code itself 1. adds that understanding the 'why' behind code can transform one's approach to writing comments, making them more meaningful and insightful 2.
The best comments you see... are about the why and about the overall design.
---
Effective comments are seen as a skill, with emphasizing the importance of documenting the overall design and purpose of code rather than individual lines 3.
Legacy Challenges
Legacy code presents unique challenges, as recalls from his experience with outdated systems at Northrop Grumman. He describes working with a C codebase that lacked modern conveniences like a standard template library, making version control cumbersome and manual 4. shares frustrations about the lack of version control education in schools, noting that students often resort to rudimentary methods like file naming for versioning 5.
It's incredible to me that I was able to graduate... and still haven't had never used version control at the time.
---
Documenting decisions in legacy code is crucial, as it helps future developers understand the rationale behind seemingly odd choices. stresses the importance of leaving clear instructions on when and how to safely modify or remove outdated code 6.
Related Episodes


364: A Casey Settings Screen
Answers 383 questions

313: The Residue of Seven People
Answers 383 questions

390: I Invented This Anti-Pattern
Answers 383 questions

357: A Giant Green Field
Answers 383 questions

327: Better Late Than Wrong
Answers 383 questions

295: Outlets That Suck
Answers 383 questions

387: It Might Not Be as Cool as You Think
Answers 383 questions

485: This Is Casey Actual
Answers 383 questions

423: Fort of HomePods
Answers 383 questions

439: Eventually Converge on Correctness
Answers 383 questions

350: Wax Buddies
Answers 383 questions

310: Apple Playstore
Answers 383 questions

368: A Jacket and Some Pins
Answers 383 questions

481: Accidentally Made It Too Good
Answers 383 questions

271: Voting With Your Virtual Feet
Answers 383 questions














