115 files changed and almost 3k lines added… sure, I’ll have this reviewed by tomorrow for ya 🙄

  • richard_wagner@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    What about the Java practice of having a matching implementation class for every class? Or does that actually serve a purpose, lol.

    • devil_d0c@lemmy.world
      cake
      OP
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      That pattern makes sense for large distributed systems or mature miceoservice frameworks that undergo constant maintenance or updating. And even then, it’s only useful if the interface is well thought out and designed.

      In practice, the interface is whatever you happened to need when you make the service class, and it ends up being a 1:1 service to serviceImpl situation.

      Most things don’t need to be a service, a utility class to send emails is fine, you’re not going to “interface” with that in any unique ways that need a service… im rambling on the toilet now