2 ms·
I really dislike the term myself. It's not just cute, it's jargon-y. It's language that leans away from describing a problem and towards unexplained pejorative
by wwweston 11y ago
I really dislike the term myself. It's not just cute, it's jargon-y. It's language that leans away from describing a problem and towards unexplained pejorative -- and it's a concept that leans away from talking specifically about what's wrong and towards a vague sense that something deeper might be wrong.
* "Oh, man. You've got a long function there. That's a code smell, you know."
* "Long functions often involve keeping track of a lot of state or activity -- and that makes it hard to keep a clear mental model of what it does, making it more likely that you'll make mistakes. See if you can break it down into a series of smaller, simpler functions that are easy to reason about."
- collyw 11y agoIts like saying "you're doing it wrong" without explaining what is better.