34: Matt Machuga - Dealing with Dependencies in Active Record Models
38:43•2016-01-27
Om avsnittet
Topics include:Are facades and service location automatically bad?Are NounVerber classes anti-OO?Adding a layer of composition to create domain models with dependenciesUsing method injection for a temporary dependencyUsing optional parameters to improve testabilityCode snippets:Option 1: Facades/Service Location/Global AccessOption 2: Moving the responsibility to a new classOption 3: Composing a new domain modelOption 4a: Inject the dependency into the methodOption 4b: Optional method injection w/global fallbackLinks:Matt's blog"Agent nouns are code smells" by Peter Gillard-MossNitpick CI, Adam's PSR-2 style checking service"Dependency injection is not a virtue" by DHHErie Day of Code, Matt's conferenceSponsored by Laracasts
Senaste avsnitten
Full Stack Radio
152: Ben Orenstein - How to Stand Out When Applying for a Job at a Small Company
2021-01-28 • 47min
Full Stack Radio
151: DHH – Building HEY with Hotwire
2020-12-28 • 1h 14min
Full Stack Radio
150: Secret Screencasting Tips & Behind the Scenes of Tailwind CSS 2.0
2020-10-21 • 59min
Full Stack Radio
149: Choosing a Payment Processor, Radical Icons & W3C Hype
2020-10-07 • 56min
Full Stack Radio
148: Accessible Focus Styles, Tailwind Labs on YouTube, and Secret Projects
2020-09-29 • 59min
Full Stack Radio
147: Surviving GitHub Issues, the Statamic 3 Launch Aftermath, Tailwind 1.8, and Headless UI
2020-09-23 • 1h 19min
Full Stack Radio
146: Launching Statamic 3, GitHub Sponsors, Tailwind CSS v1.7, and Preparing for Laracon
2020-09-04 • 1h 20min
Full Stack Radio
145: Statamic 3.0 and Tailwind CSS 2.0
2020-08-20 • 1h 15min
Full Stack Radio
144: Gary Bernhardt - TypeScript and Testing
2020-08-05 • 1h 24min
Full Stack Radio
143: Rich Harris - Svelte and Defending the Modern Web
2020-07-22 • 1h 15min