Тёмный
No video :(

Domain Driven Design (DDD) in Golang!? 

samvcodes
Подписаться 4,7 тыс.
Просмотров 20 тыс.
50% 1

In this video, I compiled a simple sample of an (opinionated) Domain Driven Design structure in Golang. The video goes through a simple domain package named `User` and explains how to use your domains to ensure your Go services speak the "application" language.
Further videos will deep dive into the hexagonal architecture pattern in Go, of which the Domain Driven Design (DDD) code will fit nicely.
By all means, I'd love to hear your feedback this DDD Pattern, and likewise please do share your own patterns in the comments below!
Twitter: / samvcodes
Github: github.com/sam...

Опубликовано:

 

15 сен 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@RootsterAnon
@RootsterAnon 10 месяцев назад
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 10 месяцев назад
Thanks a lot for your comment! I’m glad it was useful :)
@filcondrat
@filcondrat 10 месяцев назад
we have Java at home
@samvcodes
@samvcodes 10 месяцев назад
This made me laugh😅
@dmitrydorofeev1072
@dmitrydorofeev1072 10 месяцев назад
Great video! I would also suggest making the fields of the User struct non-exported to prevent their modification outside the domain methods.
@petenilson
@petenilson 10 месяцев назад
Nice video. It’s good to see a video on design patterns in go. Subbed and looking forward to the next.
@samvcodes
@samvcodes 10 месяцев назад
Thanks a lot, really appreciated! Perfect timing too, I just released another 😁
@ibrahimkoz1983
@ibrahimkoz1983 5 месяцев назад
This is how Go should be written. Type definitions over primitives are what makes this language so powerful.
@TheMrlewismedia
@TheMrlewismedia 11 месяцев назад
Great video - really informative and didn’t ramble on! ‼️🎉
@samvcodes
@samvcodes 11 месяцев назад
Thank you mate!
@kiddienoob
@kiddienoob 9 месяцев назад
Very refreshing to see some real world application examples!
@samvcodes
@samvcodes 9 месяцев назад
Thank you!
@NiccoloFant
@NiccoloFant 2 месяца назад
Should domain service method params be passed as already validated domain objects or should they be provided as primitive types (like in this video)?
@Kaizala1933
@Kaizala1933 9 месяцев назад
The main issue i have with implementing DDD in Go is the folder structure it's very confusing at times..
@user-qb9vg8lp7e
@user-qb9vg8lp7e 10 месяцев назад
nice intro to ddd would love to see how hexagonal arrch would fit in here
@samvcodes
@samvcodes 10 месяцев назад
Thanks! You’re in luck - I just made a new video about hex arch with DDD 😊
@catsinthejungle6459
@catsinthejungle6459 10 месяцев назад
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 10 месяцев назад
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 😊
@vikingthedude
@vikingthedude 10 месяцев назад
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 10 месяцев назад
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)
@InvincibleMan99
@InvincibleMan99 5 месяцев назад
Why orm layer should be insude domain Db orm is your independent layer
@worldwide6626
@worldwide6626 10 месяцев назад
Subscribed!
@samvcodes
@samvcodes 10 месяцев назад
Thanks so much😊
@alex-0x6b
@alex-0x6b 5 месяцев назад
Give repo link plz
@Im_Ninooo
@Im_Ninooo 10 месяцев назад
why not just use a validation lib that validates the whole struct? this seems quite excessive.
@alexisfibonacci
@alexisfibonacci 9 месяцев назад
Primitive obsession?
@streetfashiontv9149
@streetfashiontv9149 9 месяцев назад
Hi Sam do you have email or LinkedIn contact for advice on developing learning materials for newbies using Golang?
Далее
Х..евый доктор 😂
00:15
Просмотров 127 тыс.
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Просмотров 1,8 млн
Fancy VS Classic #shorts  @CRAZYGREAPA
00:33
Просмотров 1,2 млн
The BEST Tool to Structure Golang Projects
7:58
Просмотров 25 тыс.
Master Golang with Interfaces
21:54
Просмотров 10 тыс.
Domain Driven Design: What You Need To Know
8:42
Просмотров 113 тыс.
How To Implement Domain-Driven Design (DDD) in Go
1:57:42
How To Use The Context Package In Golang?
17:03
Просмотров 58 тыс.
Х..евый доктор 😂
00:15
Просмотров 127 тыс.