Posts marked with “design patterns”

Pragmatic PHP: Testing Singletons

by · October 2, 2019

0
 

This month wraps up our singleton coverage. We’ll see the self registry variant (a self-contained registry pattern implementation). We’ll find ways to test singletons and learn how to test database memoization without requiring an actual database.

 

Pragmatic PHP: Studying Singletons

by · September 3, 2019

0
 

This month we’ll take a deep dive into the Singleton Design Pattern. Even though it’s generally considered an anti-pattern, we’ll see useful variations I use time and again

 

Internal Apparatus: Generated Singletons

by · August 2, 2019

0
 

This month we study the Singleton Design Pattern, but with a twist. We start with a correct implementation but get it wrong by refactoring. We’ll examine the PHP generated code, each step of the way, to understand what went wrong. We’ll observe at least two reasons the Singleton Design Pattern is now considered an anti-pattern. We’re preparing to learn useful variations next month by seeing precisely how it works under the hood.

 

Secure by Design – June 2017

by · June 2, 2017

0
 

Learn about designing security into your application from the start in the June 2017 issue of the magazine.

 

Uncanny PHP – May 2017

by · May 2, 2017

0
 

The April issue is available for download.This month, we look at multi-factor authentication, Homestead, Rocketeer deployments, API integrations, and more.

 

Spring Renewal – April 2017

by · April 3, 2017

0
 

The April issue is available for download.This month, we look at multi-factor authentication, Homestead, Rocketeer deployments, API integrations, and more.

 

Back to the Drawing Board – March 2017

by · March 1, 2017

0
 

The March issue of the magazine is ready for you to download. In this issue, we look at some server related technologies to keep your PHP application humming.

 

Blueprints for Success – January 2017

by · January 3, 2017

1
 

We have a new issue of the magazine to ring in the new year! This issue collects articles to help you plan and make your application and code better. These may be well-known design patterns, fundamental concepts, or novel applications of a familiar tool.