RR 353: Removing Business Logic from Rails Controllers with Aaron Sumner episode artwork

EPISODE · Mar 13, 2018 · 57 MIN

RR 353: Removing Business Logic from Rails Controllers with Aaron Sumner

from Ruby Rogues · host Charles M Wood

Panel: Charles Max WoodDavid Richards Special Guests: Aaron SumnerIn this episode of Ruby Rogues, the panel discusses removing business logic from Rails controllers with Aaron Sumner. Aaron is a long time Ruby developer, using mostly Rails, writes a blog called Everyday Rails, and most people know him from his book, Everyday Rails Testing with RSpec: A practical approach to test-driven development. They discuss service objects, the pros and cons of using them, and they emphasize not trying to change something all at once, but gradually.In particular, we dive pretty deep on:Aaron introHow to test code without controller tests?The cons to controller testsSoft deprecationIf you’re not writing controller tests, what are you writing?Get the code out of the controllers and test it in more isolationService objectsProblem with a controller having a lot of business logic in itRailsCons of service objectsUsing a service object inside of a controllerPros of service objectsGetting smaller can happen step-wiseRe-architecting should happen gradually not all at onceWhen you write a service object, there is a flow to itHow writing his book impacted his viewsStart smallAnd much, much more!Links:Everyday RailsEveryday Rails Testing with RSpec: A practical approach to test-driven developmentRuby on Rails@EverydayRailsEveryday Rails [email protected]:CharlesThe 12 Week Year by Brian P. Moran and Michael LenningtonRubyHACK ConferenceDavidReady Player One by Ernest ClineAaronNo codeDeleting code30 for 30 PodcastSpecial Guest: Aaron Sumner. Advertising Inquiries: https://redcircle.com/brandsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: https://www.spreaker.com/podcast/ruby-rogues--6102073/support.

Panel: Charles Max WoodDavid Richards Special Guests: Aaron SumnerIn this episode of Ruby Rogues, the panel discusses removing business logic from Rails controllers with Aaron Sumner. Aaron is a long time Ruby developer, using mostly Rails, writes a blog called Everyday Rails, and most people know him from his book, Everyday Rails Testing with RSpec: A practical approach to test-driven development. They discuss service objects, the pros and cons of using them, and they emphasize not trying to change something all at once, but gradually.In particular, we dive pretty deep on:Aaron introHow to test code without controller tests?The cons to controller testsSoft deprecationIf you’re not writing controller tests, what are you writing?Get the code out of the controllers and test it in more isolationService objectsProblem with a controller having a lot of business logic in itRailsCons of service objectsUsing a service object inside of a controllerPros of service objectsGetting smaller can happen step-wiseRe-architecting should happen gradually not all at onceWhen you write a service object, there is a flow to itHow writing his book impacted his viewsStart smallAnd much, much more!Links:Everyday RailsEveryday Rails Testing with RSpec: A practical approach to test-driven developmentRuby on Rails@EverydayRailsEveryday Rails [email protected]:CharlesThe 12 Week Year by Brian P. Moran and Michael LenningtonRubyHACK ConferenceDavidReady Player One by Ernest ClineAaronNo codeDeleting code30 for 30 PodcastSpecial Guest: Aaron Sumner. Advertising Inquiries: https://redcircle.com/brandsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: <a...

NOW PLAYING

RR 353: Removing Business Logic from Rails Controllers with Aaron Sumner

0:00 57:32

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

Rogues Gallery Uncovered Simon Talbot Rogues Gallery Uncovered, the podcast of bad behaviour in period costume. True (ish) stories of history’s most fascinating and scandalous men and women.From Casanova and Mata Hari to Errol Flynn and Rasputin, it’s a history podcast with a difference. Join lovable rogue Simon Talbot every fortnight for bawdy, colourful tales of ‘Libertines, Lotharios and Complete Bastards.’  It’s funny, shocking, shameless and doesn’t mention Jane Austin once!It’s not suitable for kids or easily offended grownups.    Explicit 我又不是有機小農 Ruby & Amber & Emerald *未滿18歲請勿收聽* : 怎麼辦啦~~我是不是很有問題(;´༎ຶД༎ຶ`) : 我們又不是有機小農......我們都很有毒╮(╯_╰)╭ ✧歡迎來到三位小阿姨的聊天排毒紀錄✧ insta: @inorganicfarm 來信請到: [email protected] Powered by Firstory Hosting Explicit Tarot Is F*cking Cool Amelia Whitehouse and Ruby Wednesday Tarot iis Fuckiing Cool - The ReturnDue to the sheer unprecedented bloodlust for more, Final Girls, Ruby Wednesday and Amelia Whitehouse have teamed up once again to battle the chaos, violence and treachery of the Tarot. Will it be swift, clean slices or battered blunt force trauma?Only the whispers on the wind could possibly tell.@tarotisfuckingcool@mxrubywednesday@carneliankeeptarotSoundtrack by Laura Groves@laura_m_groves Explicit Bitter B*tch Juliana Folk Welcome to Bitter B*tch, where two Southern California moms dare to bare it all. Each week your hosts Ruby and Jules will be peeling back the layers of culture, mental health, wellness, and relationships, and serving it raw. No fluff, no pretense, just the unvarnished truth. Are you ready for a wild ride? Then join us, because life isn’t always sweet, and neither are we. Explicit

Frequently Asked Questions

How long is this episode of Ruby Rogues?

This episode is 57 minutes long.

When was this Ruby Rogues episode published?

This episode was published on March 13, 2018.

What is this episode about?

Panel: Charles Max WoodDavid Richards Special Guests: Aaron SumnerIn this episode of Ruby Rogues, the panel discusses removing business logic from Rails controllers with Aaron Sumner. Aaron is a long time Ruby developer, using mostly Rails, writes a...

Can I download this Ruby Rogues episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!