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

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

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

Full Stack Radio

January 27, 201638m 43s

Audio is streamed directly from the publisher (media.transistor.fm) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

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:

Topics

technologysoftwarewebdevelopmentproductstartup