It all started with summer school and a Texas Instruments computer in 1984! Since then Dave has 19 professional years experience in web development, architecture, management, and mentoring others. His expertise is in integrating new technologies, leveraging open source for the enterprise, and team building. Dave has presented in the past at MadisionPHP 2016, OpenWest 2016, MinneBar 2016, and WordCampMSP in 2014 and 2013.
This talk will be a walk through of integrating DDD design patterns and why it has proven itself worthy. InboxDollars is a 15+ year old PHP application. It has very complex business rules to serve its over 2 million members. Over time, business logic became scattered in Models, Controllers, AppControllers, shared libraries to even older code....Which led to business rules being misinterpreted or lost when integrating a new technology.
The talk will walk through how DDD patterns have been integrated over the past two years. And why it has led to consistently applied business rules and less bug fixes. Its applicability will be discussed within the context of Vernon Vaughns/Eric Evans framing of Domain Driven Design. Focus will be with DDD and the repository pattern.
There are several use cases that enable your application to be more maintainable and adaptable using DDD and the repository pattern.
Use case #1: Multiple data sources (Feature needs to merge data from mysql, redis, memcache).
Use case #2: Separation of concerns. Domain code can be easily read, to grasp business rules. Feature is big enough that having things separate makes sense. Easier to support and identify performance issues, swapping out data sources. Writing unit tests are easier, just replace repository with in-memory repo. Business rules of feature live separate from getting the data.
Use case #3: Break away from framework MVC approach. (If data needed for feature is from multiple mysql tables, it makes sense to wrap all these into a repository instead of stuffing into a model).
Examples will show before and after implementing a repository pattern within the CakePHP framework.
Author of “Domain-Driven Design”
Discerner of the Code
Inventor of EventStorming
Passionate software craftsman
Mobile Developer & Mentor
Distributed Systems and Stuff
Event-Driven Model Enthusiast
Creator of Axon Framework
Student of Systems
Strategic Design Specialist
Principal Software Engineer
Emerging Human, Recovering Engineer
Better by Design, Excel by Build
Use Case Driven
Organiser of KanDDDinsky