Domain Driven Design (DDD) in Golang!?

Поділитися
Вставка
  • Опубліковано 30 вер 2024

КОМЕНТАРІ • 30

  • @filcondrat
    @filcondrat 11 місяців тому +15

    we have Java at home

    • @samvcodes
      @samvcodes  11 місяців тому +1

      This made me laugh😅

  • @dmitrydorofeev1072
    @dmitrydorofeev1072 11 місяців тому +4

    Great video! I would also suggest making the fields of the User struct non-exported to prevent their modification outside the domain methods.

  • @davidalejandrocastiblancos1171
    @davidalejandrocastiblancos1171 17 днів тому

    but the fields should be private in the Domain layer

  • @Kaizala1933
    @Kaizala1933 11 місяців тому +1

    The main issue i have with implementing DDD in Go is the folder structure it's very confusing at times..

  • @ibrahimkoz1983
    @ibrahimkoz1983 7 місяців тому +5

    This is how Go should be written. Type definitions over primitives are what makes this language so powerful.

  • @vikingthedude
    @vikingthedude 11 місяців тому +1

    How do you align the values along the same column in the structs? Is this a feature of the gopls LSP? Or some other feature? Which command do you run for this? Thanks

    • @samvcodes
      @samvcodes  11 місяців тому +1

      Hello! Yes that's right, it's the Go LSP tools. A mixture of gopls, gofmt etc. Most IDE's / Neovim have great support for the Go tooling :)
      For example, you can install the Go extension in VS Code which should format your Go code for you. (Under the hood it installs the Go tooling binaries)

  • @NiccoloFant
    @NiccoloFant 3 місяці тому

    Should domain service method params be passed as already validated domain objects or should they be provided as primitive types (like in this video)?

  • @InvincibleMan99
    @InvincibleMan99 6 місяців тому

    Why orm layer should be insude domain
    Db orm is your independent layer

  • @RootsterAnon
    @RootsterAnon Рік тому +1

    I really liked this video and its structure. I will watch other videos as well. Great intro to DDD in Go, which is what I needed.

    • @samvcodes
      @samvcodes  Рік тому

      Thanks a lot for your comment! I’m glad it was useful :)

  • @petenilson
    @petenilson Рік тому +1

    Nice video. It’s good to see a video on design patterns in go. Subbed and looking forward to the next.

    • @samvcodes
      @samvcodes  Рік тому

      Thanks a lot, really appreciated! Perfect timing too, I just released another 😁

  • @DanishSharma-h1y
    @DanishSharma-h1y Рік тому +1

    nice intro to ddd would love to see how hexagonal arrch would fit in here

    • @samvcodes
      @samvcodes  Рік тому

      Thanks! You’re in luck - I just made a new video about hex arch with DDD 😊

  • @TheMrlewismedia
    @TheMrlewismedia Рік тому +1

    Great video - really informative and didn’t ramble on! ‼️🎉

  • @Im_Ninooo
    @Im_Ninooo 11 місяців тому

    why not just use a validation lib that validates the whole struct? this seems quite excessive.

  • @worldwide6626
    @worldwide6626 11 місяців тому +1

    Subscribed!

    • @samvcodes
      @samvcodes  11 місяців тому

      Thanks so much😊

  • @catsinthejungle6459
    @catsinthejungle6459 11 місяців тому

    Very informative, I think it would be very helpful if you provided a link to the code you've explained in the video. This might just be a me thing, but I can understand a lot better when I have a complete view of the codebase while following along. Obviously, I'll leave that decision to you and regardless of that, you've earned a new subscriber.

    • @samvcodes
      @samvcodes  11 місяців тому

      Thanks for your comment and for subscribing! I’ll add a link on future videos, and will update this video with a link too! - thanks again 😊

  • @alex-0x6b
    @alex-0x6b 7 місяців тому

    Give repo link plz

  • @kiddienoob
    @kiddienoob 11 місяців тому +2

    Very refreshing to see some real world application examples!

  • @streetfashiontv9149
    @streetfashiontv9149 11 місяців тому

    Hi Sam do you have email or LinkedIn contact for advice on developing learning materials for newbies using Golang?