Discover this podcast and so much more

Podcasts are free to enjoy without a subscription. We also offer ebooks, audiobooks, and so much more for just $11.99/month.

34: Matt Machuga - Dealing with Dependencies in Active Record Models

34: Matt Machuga - Dealing with Dependencies in Active Record Models

FromFull Stack Radio


34: Matt Machuga - Dealing with Dependencies in Active Record Models

FromFull Stack Radio

ratings:
Length:
39 minutes
Released:
Jan 27, 2016
Format:
Podcast episode

Description

In this episode, Matt Machuga of Think Through Math returns to talk with Adam about design options when you find yourself wanting access to a collaborator in an Active Record or Eloquent model. They discuss the pros and cons of four specific designs, and finish off with their personal recommendations.

Topics include:


Are facades and service location automatically bad?
Are NounVerber classes anti-OO?
Adding a layer of composition to create domain models with dependencies
Using method injection for a temporary dependency
Using optional parameters to improve testability



This episode is brought to you by Laracasts.
Released:
Jan 27, 2016
Format:
Podcast episode

Titles in the series (100)

A podcast for developers interested in building great software products. Every episode, Adam Wathan is joined by a guest to talk about everything from product design and user experience to unit testing and system administration.