Search

Home > Full Stack Radio > 34: Matt Machuga - Dealing with Dependencies in Active Record Models
Podcast: Full Stack Radio
Episode:

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

Category: Technology
Duration: 00:38:43
Publish Date: 2016-01-27 07:12:00
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

Code snippets:

Links:

Total Play: 0

Users also like

200+ Episodes
A Grey Matte .. 50+     4