Posts marked with “design patterns”

Object-Oriented Programming: A Primer, Part Two

by · January 3, 2020

0
 

The first article in this series, found in the November 2019 issue, focused on the “what” in object-oriented programming; that is, fundamental concepts and related features offered by PHP and what those features do. While this article does a bit more of the same, it focuses more on the “how” of object-oriented programming, particularly principles which guide how you use these features to build out your applications.

 

Expedition PHP

by · December 4, 2019

0
 

Any career today requires continual learning and curiosity for success. Building web applications with PHP is not exempt. The PHP of today is light-years better than the scripts that initially made up “Personal Home Page/Form Interpreter.” In this issue, we examine moving between frameworks, understanding your mental health, contributing to open source, and more.

 

Education Station: Dependency Injection, Part Two

by ·

0
 

Last month, I talked about the basic idea of what dependency injection is and its importance. Now that we’re more familiar with it, we’ll look at examples of using dependency injection for managing object coupling, moving object creation externally, and keeping your classes concise.

 

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.