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

Laracasts

Whip Monstrous Code Into Shape

via Laracasts

Overview

You did your best, but somehow that User object, over time, morphed into a monstrous God object. And your controllers started out nice and clean, but now... not so much. We've all been there. In this series, we'll review a number of ideas for whipping convoluted code into shape.

Syllabus

  • Consider Form Objects
  • Consider Use Cases
  • Consider Domain Events
  • God Object Cleanup #1: Pass-Through
  • God Object Cleanup #2: Traits and Socks
  • God Object Cleanup #3: Value Objects
  • Consider Policies
  • Consider Splitting Tasks into Steps
  • Consider Strategizing
  • Consider Normalizing
  • Consider View Models
  • Too Many Method Parameters is a Sign
  • Consider Decorating
  • Consider Fluent Interfaces
  • Hands On Refactoring
  • Staying True to the Seven Resourceful Methods
  • Consider Query Objects
  • Consider Refactoring Your Views
  • Consider a Guest User Class
  • Consider Wrapping it Up

Taught by

Jeffrey Way

Reviews

Start your review of Whip Monstrous Code Into Shape

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.