Domain-Driven Design Made Me Realize Something About AI Tools

  Рет қаралды 41,547

ArjanCodes

ArjanCodes

Күн бұрын

Пікірлер: 79
@ArjanCodes
@ArjanCodes 9 ай бұрын
👷 Join the FREE Code Diagnosis Workshop to help you review code more effectively using my 3-Factor Diagnosis Framework: www.arjancodes.com/diagnosis
@marcioneto3016
@marcioneto3016 9 ай бұрын
This book was actually very helpful to me. I worked on a chemical process control system ~7 years ago, and I decided to follow the DDD philsophy, because it felt like a natural fit to what I was working on. It turns out that the software came out remarkably robust, and the code is almost self-documenting. The price I had to pay was that I had all sorts of little Value Object classes, as well as the other DDD infrastructure, which made the codebase that much denser. I do feel, however, that this was a small price to pay when compared to what came out! I'd also recommend the book "Implementing Domain Driven Design" by Vaughn Vernon, in case anyone's interested in a more "hands-on" type of book.
@jdray
@jdray 9 ай бұрын
Excellent video. More of this, please. As someone who is a business analyst who occasionally codes rather than a professional developer, the idea of developing and expressing a domain model is core to the way I feel software development should be done. Gherkin (for BDD) as a way to express detailed requirements in non-technical language is a step in the right direction, but I wonder whether there's some sort of "domain-driven design" expression language that can bridge the gap between project sponsors and developers. If not, we need one.
@Naej7
@Naej7 9 ай бұрын
That’s called ATDD
@astridsawatzky
@astridsawatzky 9 ай бұрын
You might be interested in Event Storming by Alberto Brandolini. It is a communication technique to find the domain of a problem, and its boundaries.
@jdray
@jdray 8 ай бұрын
@@Naej7, from what I read, ATDD is just another name for BDD. In your experience do they differ? If so, how?
@Naej7
@Naej7 8 ай бұрын
@@jdray Different name = different stuff, it’s as simple as that. You can do BDD without test, but if you do BDD by writing tests first (one at a time), then it’s ATDD
@AshtonThorogood
@AshtonThorogood 9 ай бұрын
Probably the single biggest influence on my career since I was first introduced to it in 2002. I've since had a hand in building robust and long-lived systems at every company I've worked for since. Robust and long-lived because by recognizing real world ontological meaning and adopting precise semantics means that your solutions can only evolve subject to real-world constraints rather than merely software artifacts, which leads to brittleness.
@jakevikoren
@jakevikoren 9 ай бұрын
I recently found your channel and have fallen in love with your teaching style. I'm a self-taught machine learning researcher (physicist by training) and have felt pretty insecure about my software development skills. You are really helping me to level up and enjoy the process - thank you! This video really hit the spot. Machine learning at its core is representation learning - ML models learn representations of domains such that they can accurately represent the relationships between data within that domain. In that sense, as an ML Engineer I am the meta-domain model learner :D I learn the domain within which the domain learner operates. It's a fractal ecosystem of learning! ... I need to go to bed lol
@Saiyugi16
@Saiyugi16 7 ай бұрын
@ArjanCodes I recently came the same realization recently, when I was building an api that is integrated with LLM, domain driven design coupled with event driven patterns such as CQRS and event sourcing is the foundation for advance RAG and monitoring for that fast feedback loop.. I am currently exploring this.. we are aligned so far
@Wahlnetwork
@Wahlnetwork 9 ай бұрын
I regularly work with DDD concepts to build and release software for my clients. This is a great video and touches on topics key to building great software. Too often, people try to over complicate what is essentially "how we are going to logically bound our work" and fail to realize the value in strong communications. Thank you for the video!
@ArjanCodes
@ArjanCodes 9 ай бұрын
Glad you enjoyed the content!
@andrewb8789
@andrewb8789 9 ай бұрын
Your point about how we worry about the details of the code is what I think about most when pontificating on AI. While I don't trust OpenAI to create my code for me, I love how much easier it is using Github Copilot. Adding log commands, doc strings, etc. don't interrupt my flow. It handles the part of programming that has always just been out of reach of automating away. Thus, I'm freed up to focus on the big picture.
@ruiztulio
@ruiztulio 9 ай бұрын
I loved the video, these discussions are needed more often. One can forget sometimes that the tools we build are for other humans and as such they need to satisfy a requirement instead of focusing on picking the right tool (which is important, but not the most important in the exploration/experimentation fase)
@dwhall256
@dwhall256 9 ай бұрын
I work in the safety-critical embedded world, which means I use C for the project and Python for the tools. Most programmers can make a C program that works, but few can write it in a way that is (1) easy for the reader to understand and (2) hard to mis-use. As I learn Nim, I'm finding that Nim's cleaner and more expressive syntax and strong static typing are exactly what is needed to craft code that meets those two criteria. My next step in learning is figuring out how to arrange a project or library in a way that screams its design. So the DDD book is on my TODO list.
@AlanJames1987
@AlanJames1987 9 ай бұрын
You should also read "The Lean Startup" by Eric Ries if you haven't already. It presents similar ideas but from the perspective of building a business. It's all about failing early and iterating quickly to understand the shape of the Domain Model you're working on.
@ArjanCodes
@ArjanCodes 9 ай бұрын
Absolutely! The Lean Startup was one of the first business books I read, together with The E-Myth Revisited by Michael Gerber, which is also a great book by the way.
@AlanJames1987
@AlanJames1987 9 ай бұрын
​@@ArjanCodes I haven't read the The E-Myth Revisited. I will check it out. Thanks for the recommendation.
@alexeyprikhodko6990
@alexeyprikhodko6990 9 ай бұрын
The book "Zero to One: Notes on Startups, or How to Build the Future" by Peter Thiel may be useful.
@latteindigo9476
@latteindigo9476 7 ай бұрын
This video is a game changer. I am able to view code in a different way and i am going to iterate more on the DDD journey to make me better at idea realization and code optimization
@ArjanCodes
@ArjanCodes 7 ай бұрын
I'm glad the video was helpful to you!
@gkvadrevu2000
@gkvadrevu2000 9 ай бұрын
14:38 I think Domain model better our understanding of what and to whom and why we build something we build. Code is how we build it. I think the view code is an expression of domain model is very apt. It also nicely give a reason to follow agile and early prototyping process. If code is an expression then design patterns is the grammer of writing it. Overall a fantastic summarisation. Thank you
@ArjanCodes
@ArjanCodes 9 ай бұрын
I'm glad you enjoyed the content! Thank you for the insightful comment :)
@micahpezdirtz8196
@micahpezdirtz8196 9 ай бұрын
This reminds me of the Top Down vs Bottom Up strategies. Very important reminder that the top down viewpoint starts this far outside of the code itself.
@Antonio-ib6ii
@Antonio-ib6ii 6 ай бұрын
I would like to see a FastAPI & SQLAlchemy project implementation according to DDD design principles.
@MariusCristianCapatina
@MariusCristianCapatina 9 ай бұрын
Thank you @ArjanCodes , this , by chance helped me get a hold on what I needed to focus on my system design. More specifically what would add value when deciding on a software development methodology.
@ArjanCodes
@ArjanCodes 9 ай бұрын
Hey Marius! I'm very glad that this video was helpful to you, thank you for the comment :)
@AnOmegastick
@AnOmegastick 9 ай бұрын
I've been hoping you'd do a series on Domain-Driven Design for a long time! I'm working through the book myself at the moment and it is dense, so I would love to hear your thoughts and breakdowns of relevant concepts.
@ArjanCodes
@ArjanCodes 9 ай бұрын
I'm glad you enjoyed the video! Thank you for the kind words :)
@demolazer
@demolazer 9 ай бұрын
Great timing. My dad is a software dev and just last week I found this book in his library.
@ArjanCodes
@ArjanCodes 9 ай бұрын
Hope this video incentivizes you to give it a read!
@AnemeTemenA
@AnemeTemenA 6 ай бұрын
Google knows!
@TheEvertw
@TheEvertw 9 ай бұрын
Familiarity with the customer domain is a critical success factor for a software project. It is the job of the Architect / Product Owner to explain the various concepts to all programmers working on the project so that they all get an understanding for them. This will help them interpret stories, design tests, and design the structure and functionality of the software. Without that understanding, there will be loads of booboo moments where they misinterpret what the customer wants.
@UNgineering
@UNgineering 9 ай бұрын
it would be amazing to see a practical example of this technique from "idea" to "product"
@dragonfly-7
@dragonfly-7 9 ай бұрын
I really like your broad approach on software development ! Finally doing some sort of abstraction away from the pure programming will help to improve the communication to your customer. So: Thank you for that ! Saying that: Sometimes I struggle with some idea I implemented as a "proof of concept" which then evolves over time. And at a certain point in time I wish I had done some more abstract reserach like you described it in here (domain model). But that's something which might not happen that hard in the future - assuming an inclining learning curve ... 😉
@holographictheory1501
@holographictheory1501 9 ай бұрын
Awesome video! Thank you so much. A minor thing that would have made me enjoy it even more -- I found how loud the music was to be a little distracting in the intro section, no idea if that's just a me thing, but yet again you present really interesting and complex concepts in a clear and compelling way!
@DerekUniqueBennett
@DerekUniqueBennett 9 ай бұрын
The obvious conclusion is that the domain design will eventually look like a prompt that defines the ubiquitous language and then describes the domain using that language. I want to know where to go to learn more about that. Who is doing that? What patterns are relevant to that way of developing?
@NaranRet
@NaranRet 9 ай бұрын
I didn't read the book yet, but i wanted to express a feeling i am having lately that I think is very in line with what Arjan says about new AI tools and devs relationship. It turns out that i find myself more and more working in the model (whether is a domain or business or ER model it doesn't really care) of my solution and the architecture or the UI than in code itself, for which i use IAs extensively by now. Last couple of projects I spend 2 of 3 months working in the traditional modeling and test planning, and actually spend less than 1 month in the actual coding/implementation... Is that good? is that bad ? I like the usual design process and i am happy with that but I understand there could be other approaches/preferences. Is a weird feeling for me... because i used to use about a 50% or more in coding than actual designing phase... either that be because Agile prone for rapid cycle times and frequent iterations or the itching eagerness of the usual project manager (or manager) I don't know, honestly. Thanks for the insights Arjan, it's great pleasure to learn something new with you every week.
@ArjanCodes
@ArjanCodes 9 ай бұрын
I'm happy my content helped you think deeper about these topics! Thank you so much for the insightful comment :)
@dankprole7884
@dankprole7884 5 ай бұрын
In the UK we say my-NYOO-sha. God only knows how the Americans pronounce it. I don't use AI to write or help with any of my code as I want to maintain the muscle memory, but I increasingly use it to get up to speed with a new domain. In consulting we used to try to trawl through thousands of mostly irrelevant client documents and try to pick out key concepts to clarify with the client's domain experts. But they were often only available once and going back to them again looked a bit unprofessional, especially if the answer you were looking for was in the documentation. I still believe in reading a good book on a domain when you have the time, but since that happens almost never, AI is a great tool to get the essentials so you can ask smart questions of the experts. And the best part is that it takes all the pressure off the initial discovery period, as you can go back to the LLM and clarify details at any time! Thanks for the video, I'm gonna look more into this DDD thing, using AI before I decide if I want to read that thick book 😂
@KevinMedri
@KevinMedri 9 ай бұрын
Thanks Arjan, loved this, if only this approach was used more, there would be so many great examples of code that actually serves it purpose!
@ArjanCodes
@ArjanCodes 9 ай бұрын
Glad you enjoyed it, Kevin!
@0xDEAD_Inside
@0xDEAD_Inside 9 ай бұрын
Good recommendation! Thanks Arjan.
@ArjanCodes
@ArjanCodes 9 ай бұрын
Glad the video was useful to you!
@wolfgangm7565
@wolfgangm7565 9 ай бұрын
After a while I could only focus on the water glass. Great video though, on an important topic.
@taraskuzyk8985
@taraskuzyk8985 9 ай бұрын
Eric Evans had a discussion about a similar topic on Dave Farley’s channel not too long ago
@bkahlerventer
@bkahlerventer 9 ай бұрын
With general development with domain models, AI will effect areas where developers are happy to use AI. There are a number of factors why AI might not be able to be used (nobody bothering - embedded low-level code, too small userbase, too small code base for LLM, future or current legislation in the domain)
@varun4534
@varun4534 9 ай бұрын
is there any good course explaining DDD to learn and apply it on daily basis? or any workshop/talk?
@boolcode
@boolcode 9 ай бұрын
Thanks for the video and the insights. I totally agree with the assumption that DDD is the main thing for AI programming.
@ArjanCodes
@ArjanCodes 9 ай бұрын
Glad you found the video useful!
@ericevanshub
@ericevanshub 9 ай бұрын
Very nice concise explanation of DDD. (And I love the term "trashcan-oriented design"!)
@ArjanCodes
@ArjanCodes 9 ай бұрын
Thank you, Eric! Glad you enjoyed the video.
@ravenecho2410
@ravenecho2410 9 ай бұрын
Super interesting. I'm unsure the domain model seems to be what "is", but I agree one must capture it accuratel Maybe it's just all data maybe it's all just functions 😊😅
@Optimusjf
@Optimusjf 7 ай бұрын
Teacher. It's excelent.
@jimgsewell
@jimgsewell 9 ай бұрын
I’ve come to think of software as not much more than the front end of a database. You say domain, I say schema. When I think of AI’s role in programming, I think of it as another layer of abstraction. Back when programmers used Assembly, there were few programmers. With each level of abstraction, programming became easier and allowed more people to be programmers. I couldn’t program against LLM’s if it weren’t for all of the OS frameworks and libraries, not to mention the ease of high level languages like Python which today, are all freely available. I think that with AI, more people will consider themselves programmers. AI won’t replace programmers, it will create far more new programmers.
@msr00001
@msr00001 9 ай бұрын
A database schema and a domain model are certainly not analogous. If they were, that would imply a database schema can have behaviours which, of course, they do not. The way state/data is persisted is an implementation detail and a secondary concern following a rich domain model.
@kopmuntkip
@kopmuntkip 9 ай бұрын
Zonder recept kan je niet een goed gerecht maken, tenzij een genie bent. Good video! Go on!
@Talaria.School
@Talaria.School 9 ай бұрын
Great content as usual
@ArjanCodes
@ArjanCodes 9 ай бұрын
Thank you so much for the support!
@astridsawatzky
@astridsawatzky 9 ай бұрын
You got me laughing with Trashcan-oriented Programming. Acronym would be ToP
@flekderantrow3706
@flekderantrow3706 9 ай бұрын
you rock, thanks man!
@ArjanCodes
@ArjanCodes 9 ай бұрын
Happy to help!
@ravenecho2410
@ravenecho2410 9 ай бұрын
Rust gang! I wrote a linked list in Rust and I felt like PhD when I got it to work😂
@snippletrap
@snippletrap 9 ай бұрын
Now do doubly linked
@Calaharie
@Calaharie 9 ай бұрын
What is up with the glass of water?
@rrwoodyt
@rrwoodyt 9 ай бұрын
He must have read an article suggesting the use of a prop like that. It was distracting though. I kept expecting him to throw the water at the camera!
@Naej7
@Naej7 9 ай бұрын
Man can’t drink ?
@champfisk5613
@champfisk5613 9 ай бұрын
10:00 so True
@alexshanin6597
@alexshanin6597 9 ай бұрын
Trash Can Oriented Programming ( TCOP ) :) Brillient
@ArjanCodes
@ArjanCodes 9 ай бұрын
Glad you enjoyed it! Ahah
@wesselbindt
@wesselbindt 9 ай бұрын
I don't think trying to learn from a divorced emerald mine inheritor who failed upwards and is in the process of tanking twitter is the best idea
@dankprole7884
@dankprole7884 5 ай бұрын
A good idea is still a good idea, regardless of who Elon probably stole it from.
@rrwoodyt
@rrwoodyt 9 ай бұрын
Min-yoo-shuh 🙂
@Jason-yr6fy
@Jason-yr6fy 9 ай бұрын
Trashcan oriented programming, what a summary 😅 for real though, very interesting video, keep it up!
@ArjanCodes
@ArjanCodes 9 ай бұрын
Thank you, will do!
@rickyspanish4792
@rickyspanish4792 9 ай бұрын
Some constructive criticism; maybe don't include tips from an alt-right fascist in your otherwise non-emotive video - it left me with a bad taste in my mouth, and that's kinda distracting when you just want to learn stuff..
@blessedpigeon6304
@blessedpigeon6304 9 ай бұрын
Am I arrogant to think that that's the common sense way off doing things and not really a methodology per se
@hubstrangers3450
@hubstrangers3450 9 ай бұрын
Do not agree at all, it's going be long debate do not prefer to step into......
@R15YZF
@R15YZF 9 ай бұрын
New subscriber here. Thanks for talking about these topics. P.S. you sound very similar to another channel I follow: @mentourpilot
Deep Dive Into the Repository Design Pattern in Python
11:56
ArjanCodes
Рет қаралды 79 М.
COMPLETE No-Nonsense VSCode Setup for Python Devs
26:05
ArjanCodes
Рет қаралды 20 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 100 МЛН
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 93 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 51 МЛН
5 Tips for Building Powerful Data Dashboards in Python
19:05
ArjanCodes
Рет қаралды 31 М.
Getting Started Setting Up Your Python Environment for ML
1:11:25
Paradise Coaching
Рет қаралды 3
Domain-Driven Design: The Last Explanation You'll Ever Need
21:05
Software Developer Diaries
Рет қаралды 10 М.
Should You Use Dependency Injection Frameworks?
14:43
ArjanCodes
Рет қаралды 45 М.
5 Ways First Principles Thinking Helps You Code Better
10:19
ArjanCodes
Рет қаралды 27 М.
Why Use Design Patterns When Python Has Functions?
23:23
ArjanCodes
Рет қаралды 110 М.
Python 3.12 Generic Types Explained
18:27
ArjanCodes
Рет қаралды 63 М.
DDD By Example - Paul Rayner - DDD Europe 2020
54:58
Domain-Driven Design Europe
Рет қаралды 52 М.
Why You Should Use Pydantic in 2024 | Tutorial
13:56
ArjanCodes
Рет қаралды 78 М.
Coding with Cursor AI | Is this the Future of Coding?!
12:43
Tiff In Tech
Рет қаралды 81 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 100 МЛН