Return to profile for Alain Schlesser

Design Patterns & Dynamic PHP - Do's & Dont's

40 minute advanced seminar


There's a strong connection between design patterns and the type system of the language you're using. Most of the original design patterns have been conceived with statically typed languages in mind. However, the problem they are trying to solve is less pronounced or even non-existent in dynamically typed languages like PHP.

In this session, we'll go through a list of design patterns and identify those that need to be adapted/simplified for PHP, as well as those that are completely useless in a dynamically typed setting.

Finally, we'll think about whether PHP might need its own subset of design patterns, filling in the blanks where the new possibilities of PHP create new problems that don't have an existing pattern yet.