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 Loops

Code smell indicating imperative loops that could be replaced with pipeline operations

Andrei Solovev

Tags

refactoring-fowlercode-qualitymaintainabilitycode-smell2nd

Impact

Loops have been a core programming construct since the earliest languages but are showing their age. First-class functions are now widely supported, and we can use pipeline operations like filter, map, and reduce to better express what we want. Pipeline operations help us quickly see the elements that are included in the processing and what is done with them, whereas loops often bury this information.

Symptoms

  • Loops have been a core programming construct since the earliest languages but are showing their age. First-class functions are now widely supported, and we can use pipeline operations like filter, map, and reduce to better express what we want. Pipeline operations help us quickly see the elements that are included in the processing and what is done with them, whereas loops often bury this information.

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 |