Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

SymfonyCasts

Design Patterns Episode 2

via SymfonyCasts

Overview

In this second episode about design patterns, we'll make our command-line app even more awesome! We'll implement many new features from scratch like player's actions, game difficulty levels, victory bonuses, and more! And we'll do it all by applying four new design patterns that will keep our code base clean, flexible and shiny.

What you'll be learning:

  • A quick reminder about the different types of design patterns
  • The Command pattern
  • The Chain of Responsibility pattern
  • The State pattern
  • The Factory pattern
  • A bonus pattern: the Null Object pattern
  • Object-Oriented programming skills

And... how any of these look - in the real world - inside a Symfony app.

Syllabus

  • Introduction
  • Command Pattern
  • Adding Actions to the Game
  • Implementing More Actions
  • Undoing Action Commands
  • Command Pattern in the Real World
  • Chain of Responsibility
  • Triggering Chain of Responsibility
  • Configuring CoR with Symfony
  • The Chain of Responsibility's *Cousin* - the *Middleware* Pattern
  • The State Pattern
  • Handling Difficulties with the State Pattern
  • State in the Real World
  • Factory Pattern
  • The Abstract Factory Pattern
  • Factory Pattern in the Real World

Taught by

Diego Aguiar and Kevin Bond

Reviews

Start your review of Design Patterns Episode 2

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.