shredbx logo
shredbx shredbx shredbx shredbx Personal
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
AClaude
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
Andrei Solovev
Knowledge
Search knowledge... ⌘K
Knowledge · Anti-Patterns

Smell Lazy Element

Code smell indicating program elements that are not earning their keep (updated from Lazy Class)

Andrei Solovev

Tags

refactoring-fowlercode-qualitymaintainabilitycode-smell2nd

Impact

We like using program elements to add structure, making it easier to express meaning. But sometimes the structure is not needed, perhaps because a once-planned capability never materialized, or through refactoring that removed most of the logic. Such elements need to die with dignity. When they are not doing enough to pay for themselves, they should be eliminated.

Symptoms

  • We like using program elements to add structure, making it easier to express meaning. But sometimes the structure is not needed, perhaps because a once-planned capability never materialized, or through refactoring that removed most of the logic. Such elements need to die with dignity. When they are not doing enough to pay for themselves, they should be eliminated.

Source

Martin Fowler — Refactoring: Improving the Design of Existing Code, 2nd

shredbx logo shredbx shredbx shredbx shredbx Andrei Solovev

Solution Architect & Lead Software Engineer

ExperiencePortfolioResearch & ExperimentsEducationCertificationSkills
GitHub ↗LinkedIn ↗Email ↗
AVAILABLE FOR NEW PROJECTS
// MY LATEST BEATS
Hobby & Interests

Lab

  • The Lab
  • Framework
  • Components
  • Packages
  • Games
  • Process (SDLC)
  • Knowledge
  • Blog

Andrei

  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
  • Lifestyle

Team

  • Team
  • Andrei
  • Claude

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 shredbx.com. All rights reserved. — Andrei Solovev |