design-patterns
Check out the blog for all posts.
HTTP Client Factory Code Refactoring
I’m working on a Proxy/Adapter project, which we’ll call “Banana.” Banana is developed in TypeScript and uses Axios for HTTP...
Read article →
PHP Real-world use cases of singleton design pattern
The singleton pattern ensures that a class has only one instance and provides global access to it. Okay, many developers...
Read article →
Why you need a builder to create your entities and models
Static factories and constructors share a limitation; they do not scale well to large numbers of optional parameters. Consider the...
Read article →
Three advantages of using static factory methods in PHP
Constructor overloading is a concept of having more than one constructor with a different list of parameters. PHP doesn’t allow...
Read article →