10
page394
9d

Duplication is far cheaper than the wrong abstraction - Sandi Metz

Comments
  • 0
    Hmmmm. I would debate using my finest argument:

    "It fucking depends."
  • 0
    @Gregozor2121 no it doesn't. The wrong abstraction is a dead end, it's just a matter of time before u realize.
  • 1
    @page394 Sorry i didnt clarify.
    Argument would be "to abstract? or to copy?"

    Clearly, "wrong abstraction" that the author of the quote have meant means the case where it is easy to make such a error.
  • 5
    This is one of those things that is funny to see go full circle as you grow your skills.

    You start out writing garbage, then you learn enough to do it "properly" and struggle to get anything done. Then you start learning to balance "cheap" vs "good enough" and you write garbage again - but adequate, production ready garbage which is as maintainable as it needs to be and done on time.
  • 2
    There are use cases when duplication means that the number of slightly altered copies is exponential to some value. I doubt there is any abstraction worse than that. Therefore it fukin depends.
Add Comment