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
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
chevron_left
86Posts
5Comments
16Connections
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
- Retail Sales Associate Spanish BilingualVerizon · Full time · Germany
- Spanish Bilingual Appointment Setter Work From HomeInsurance Protection Specialists · Full time · Puerto Rico
- Bilingual Retail Sales Associate (Spanish) - VerizonVerizon · Full time · Germany
Commenters (This Week)
SendFleet
2 comments
AEOvara
1 comment
saurav_tb_pandey
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!