How to implement a Maybe type in PHP despite object orientation
What are value objects? And why are they useful.
In this post I hope to explain what I mean by value object and let you see why they are one of the most powerful tools in our programming toolbox.
Learn how to encapsulate your domain data using immutable, always-valid value objects in PHP for —no framework necessary!
Ignoring visibility rules... in the very rare cases you need to.... by crell
As developers, we have times when we get to process a lot of data. Sometimes it’s a few kilobytes of data and we don’t need to worry about the performance because computers are so fast. When we’re looking at gigabytes or more of data then we need to be aware of the performance of our […]
Modern PHP Cheat Sheet from the book Front Line PHP
Consistency is key to making it easier for collaborators to understand and contribute to a project. When it comes to consistently naming constructors, I use the following rules.
What's a DTO and how do you recognize it? | What's a value object and how do you recognize it? | How should we use these object types? | DTOs | Value objects | Conclusion
The most powerful and modern PHP serialization library is now here.... by crell
Do you use abstract classes or extend classes in your domain code? Hopefully, you will stop doing that from this day on.
Null is problematic, but why? Let's see why, and let that guide us to new alternatievs.... by crell
I realized that I am very strict about the use of PHPs empty function in code review. There isn’t really any reason to use it in my opinion.