I have written in the past about other design patterns. In this article, I will tell you about another popular one, the factory class pattern, and when it's appropriate to use.
Let's examine Drupal's integration of the serializer. I will guide you step-by-step through a module I created as an example. You can find it at https://github.com/e0ipso/entity_markdown.
I was about to embark on a series of projects that would also teach me the subtleties of designing APIs to maximize performance and minimize roundtrips to the server found in RESTful architectures.
Today I will tell you about the Template Method pattern, a behavioral pattern very useful to deal with specialization in a subclass for a generic algorithm.
Dependency injection is an alternative to the static \Drupal::service. When writing plugins, if you don't inject your services you will have a hard time writing unit tests for your plugin's code.
With Drupal 8 and modern PHP, design patterns are going to be more relevant to us. This article talks about the decorator pattern for unobtrusive behavior inheritance.
«It depends». That may be the most used sentence when evaluating the correct technology for a generic challenge. Choosing the right technology is not a trivial problem.
During the life cycle of a Drupal project, there are many situations when you need to do expensive operations. This article explains how to organize them in order to avoid common pitfalls.