Photo by Ben on Unsplash

Action-Domain-Responder can help you keep your architecture clean, have better separation of concerns, and make your code more reusable.

But what actualy is an Action-Domain-Responder pattern?

Photo by Ben on Unsplash

Doctrine Embeddable is really handy. Using it we can create better and more cohesive Domain Model.

What is a Doctrine Embeddable?

Embeddable let’s you aggregate some properties, that are linked together in some way, into one cohesive class. You may say — well, I can create another entity and create a relation, what is the difference? The difference is, that an Embeddable does not have identity, so it is not an entity. It’s kind of a logical wrapper around properties that together create some concept. At the infrastructure layer these properties end up in the same table row as other…

What actually is a “Rich Domain Model”?

Rich Domain Model is what Object Oriented Programming is most suitable for. As we know, OOP helps us, developers, to link behavior (methods) with data (properties) using classes. Unfortunately, often Entities end up as adapters for a database with lots of getters and setters modifying private properties with almost no business logic. It is especially very common when using Active Record pattern, creating MVP product using Rapid Application Development tools and frameworks. And instead of implementing business logic where it would fit the most, in the Model, we end up creating client classes…

At the beginning there was chaos, probably the very first big ball of mud :).

Imagine adding new wire to add new feature to this.

When I started programming, the only thing that used to matter to me was the effect of it. It was fine, as it got the job done and delivered business gain. But as the software I worked on became more complicated, I’ve started to see the downsides of not pre thinking the structure of code and overall software architecture.

When you start learning new framework at the beginning of your software development journey, you don’t think of consequences of coupling anything with anything. You just…

Marcin Dźwigała

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store