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

Laracasts

Open-Closed Workshop

via Laracasts

Overview

In this workshop, we'll focus exclusively on the open-closed principle (the O in SOLID). Using real-life code, line by line, we'll refactor a confusing class into something far more manageable and extendable. Once finished, we'll have gained the luxury of introducing new functionality, not by modifying existing code, but by instead writing a new class.

Syllabus

  • What We Are Refactoring
  • Low-Hanging Refactors
  • Remove Conditionals and Embrace the Pipeline
  • Extract What Changes into a Service Provider
  • Discussing Responsibility

Taught by

Jeffrey Way

Reviews

Start your review of Open-Closed Workshop

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.