This video shows a really nice and clear example of refactoring an anemic domain model into a rich one.

  • 𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟OP
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I feel like most of what he talks about is common knowledge now.

    You would be surprised how uncommon this knowledge is, and how many developers I introduced to domain modeling by sending them this video :)

    What we do requires continuous attention to detail. We sometimes get tired or lose focus. And that may result in poor quality code.

    This is definitely true. I think maintaining and adding features to existing software is a lot like gardening. There are always tiny chores to do, you need to be constantly reorganizing small parts of the garden, there are always new opportunities for small improvements, and if you neglect doing them for a while, the problems add up, and the entire thing ends up looking messy and terrible to work with.

    • canpolatM
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Was it Voltaire who said “Common sense is not so common”? I agree with your gardening analogy. It has an element of zen in it (just like gardening).