Design Accelerator: Ports and Adapters Architecture Part 1

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 12

  • @KubaCodes
    @KubaCodes Месяц назад +6

    Even for someone familiar with the architecture this was very engaging and enjoyable to watch. Waiting for more!

  • @BlindVirtuoso
    @BlindVirtuoso Месяц назад +2

    Nice one. Appreciate it. Thanks, Vaughn

  • @maikwiesmueller
    @maikwiesmueller Месяц назад

    Just the best explanation on hexagonal I've seen so far.
    Would add that this also benefits testability.

    • @niclash
      @niclash Месяц назад +1

      My guess is that Vaughn will add these in coming episodes.

  • @mustaphab32
    @mustaphab32 Месяц назад +2

    Thanks Vaughn, but i really wonder, how is something new compared to the classic: “depend on the interface, not the implementation” ?

    • @jimhumelsine9187
      @jimhumelsine9187 Месяц назад +1

      "Program to an interface, not an implementation" is related, but I see a distinction.
      The interface/implementation principle is one of the two design principles of Design Patterns.
      It is realized in several design patterns, such as Strategy, Template Method, Façade and to some degree Adapter.
      I view Hexagonal Architecture/Ports&Adapters as pattern of these patterns that pulls them together into a cohesive design.
      I have blogged about this, and I have my own HexArch/P&A video presentation online, but I am reluctant to post any links here. Every time I post a comment with links, it get's removed by RUclips. I suspect it's trying to avoid self promotion.

    • @VaughnVernon
      @VaughnVernon  21 день назад +1

      It's the separation of outside and inside and the responsibilities that should be separated. You could implement interfaces and still have confused responsibilities.

  • @WalterVos
    @WalterVos 21 день назад

    Was already yelling at my TV thinking somebody would explain P&A wrong AGAIN when you said "the port receives an HTTP request" 😂

    • @VaughnVernon
      @VaughnVernon  21 день назад

      Hope you didn't stop there 😊

    • @WalterVos
      @WalterVos 21 день назад

      You introduced the adapter just in time 😉. I like your style here, it's actually an emergent (description of a) design. My only critique would be that outside circle: Alistair always emphasizes that P
      P&A has no layering (although I can definitely understand why people view it that way). An example that shows this is when your test suite is calling the port. The test suite is an actor that needs no adapter, and so your outside circle would be empty

  • @KaleleInfo
    @KaleleInfo Месяц назад

    Nice!

  • @KaleleInfo
    @KaleleInfo Месяц назад

    Nice!