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
Maxi ContieriLeader
posted
4 min read
2 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.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Refund
- Early Builders
chevron_left
More From Maxi Contieri
Related Jobs
- 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
- Language Data Annotator ( Spanish)Innova software Services Inc · Full time · Canada
Commenters (This Week)
Ahmer Arain
1 comment
Dilip Kumar
1 comment
rkchellah
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!