nealio82 / absolute-beginners-guide-to-ddd-with-symfony Goto Github PK
View Code? Open in Web Editor NEWExample application to go along with the "Absolute Beginner's Guide to DDD with Symfony" presentation
Example application to go along with the "Absolute Beginner's Guide to DDD with Symfony" presentation
Nealio82, thanks for you work, but I'm afraid that you understand the concept "Bounded Context" in wrong way.
In src/AcmeVet/Scheduling/Domain/Appointment/Appointment.php I see "Each Bounded Context will have one Entity class". But Bounded Context can include many entities. Furthermore, Bounded Context is not about entities, it's about Ubiquitous Language. In different Bounded Contexts the same word can has different meanings, we can have entities with the same name in different Bounded Contexts. Classical example is an order, it is not the same for a client (public frontend), for the store and for delivery service. These are different Bounded Contexts.
Maybe you should create a Value Object AppointmentDuration and use it as a type for Appointment::appointmentLengthInMinutes (I'd rename it to appointmentDuration) and in this class verify duration of an appointment.
Hello @nealio82 ,
I've been following your talk at sfday last week. As I'm mostly a Laravel dev I tried to rebuild your example on Laravel and I think I did a pretty good job...
Well... until I got to adding an extra bounded context and trying to share resources between the two. Do you have any plan to integrate this repo with the missing steps or some resource to point me in the right direction?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.