Posted inIntermediate

Using the singleton pattern to deal with constraints

Almost any WordPress or PHP programmer, even in his early days, has some contact with the Singleton design pattern. For obvious reasons, this is maybe the first PHP pattern learnt from those who study for developing using this language. Regardless any discussion on the “antipattern” aspect of the Singleton, the reality is that most applications […]