Skip to content
Imdhemy
  • Home
  • Blog
  • About
  • Home
  • Blog
  • About

design-patterns

Check out the blog for all posts.

Oct 27, 2024 · 2 min read

#typescript #refactoring #design-patterns #http-clients #software-architecture

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 →

Dec 30, 2021 · 5 min read

#php #design-patterns #singleton #laravel #software-architecture

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 →

Jun 2, 2021 · 10 min read

#php #design-patterns #builder-pattern #domain-modeling #oop

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 →

May 16, 2021 · 7 min read

#php #design-patterns #static-factory #object-creation #oop

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 →

© 2021 - 2026 . imdhemy.com Published by Jekyll, hosted on GitHub Pages.