The bit about dead code breaking trust really stuck with me, nice point by Maxi Contieri. Makes me rethink how often I leave stuff commented out just in case, when version control already has my back.
Code Smell 09 - Dead Code
3 Comments
Steve Fentonverified
•
This is where test automation can help so much. I worked on one project using specification by example and automation of all our scenarios (plus TDD at the micro-level to drive the implementation). We would occasionally adjust a specification to match what the business needed, and a whole block of code would no longer be reachable. Or we'd introduce a validation step higher up in the stack and a bunch of low-level validation code would no longer be reachable.
Because we knew the tests covered all working scenarios, we could delete anything that wasn't covered.
Please log in to add a comment.
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Early Builders
chevron_left
72Posts
5Comments
6Connections
Learn something new every day
Software Engineer and author of Clean Code Cookbook (https://amzn.to/4... Show moreLearn something new every day
Software Engineer and author of Clean Code Cookbook (https://amzn.to/4o5USZK)
Software Design, SOLID, TDD, Legacy Systems & Code Smells
Write, teach, and share Show less
Software Engineer and author of Clean Code Cookbook (https://amzn.to/4... Show moreLearn something new every day
Software Engineer and author of Clean Code Cookbook (https://amzn.to/4o5USZK)
Software Design, SOLID, TDD, Legacy Systems & Code Smells
Write, teach, and share Show less
More From Maxi Contieri
Related Jobs
- Software Engineer, Test & Infrastructure II (Bilingual Spanish)Vail Systems · Full time · Springfield, IL
- Full Stack Java/Go Developer (Bilingual English/Spanish)Dev Technology · Full time · Arlington, VA
- Language Data Annotator ( Spanish)Innova software Services Inc · Full time · Canada
Commenters (This Week)
Gift Balogun
2 comments
Daniel Ahaotu
1 comment
SuMiTa
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!