Ruby Rogues

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


Listen Later

Panel: 
  • Charles Max Wood
  • David 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 intro
  • How to test code without controller tests?
  • The cons to controller tests
  • Soft deprecation
  • If you’re not writing controller tests, what are you writing?
  • Get the code out of the controllers and test it in more isolation
  • Service objects
  • Problem with a controller having a lot of business logic in it
  • Rails
  • Cons of service objects
  • Using a service object inside of a controller
  • Pros of service objects
  • Getting smaller can happen step-wise
  • Re-architecting should happen gradually not all at once
  • When you write a service object, there is a flow to it
  • How writing his book impacted his views
  • Start small
  • And much, much more!
Links:
  • Everyday Rails
  • Everyday Rails Testing with RSpec: A practical approach to test-driven development
  • Ruby on Rails
  • @EverydayRails
  • Everyday Rails GitHub
  • [email protected]
Picks:Charles
  • The 12 Week Year by Brian P. Moran and Michael Lennington
  • RubyHACK Conference
David
  • Ready Player One by Ernest Cline
Aaron
  • No code
  • Deleting code
  • 30 for 30 Podcast
Special Guest: Aaron Sumner.

Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

Become a supporter of this podcast: https://www.spreaker.com/podcast/ruby-rogues--6102073/support.
...more
View all episodesView all episodes
Download on the App Store

Ruby RoguesBy Charles M Wood

  • 4.5
  • 4.5
  • 4.5
  • 4.5
  • 4.5

4.5

45 ratings


More shows like Ruby Rogues

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

290 Listeners

The Ruby on Rails Podcast by Elise Shaffer

The Ruby on Rails Podcast

53 Listeners

Adventures in Angular by Charles M Wood

Adventures in Angular

33 Listeners

JavaScript Jabber by Charles M Wood

JavaScript Jabber

236 Listeners

iPhreaks by Charles M Wood

iPhreaks

17 Listeners

React Native Radio by Jamon Holmgren, Robin Heinze, Mazen Chami

React Native Radio

67 Listeners

Nerdland Podcast by Lieven Scheire

Nerdland Podcast

54 Listeners

Adventures in Angular by Charles M Wood

Adventures in Angular

15 Listeners

JavaScript Jabber by Charles M Wood

JavaScript Jabber

62 Listeners

Ruby Rogues by Charles M Wood

Ruby Rogues

21 Listeners

My Angular Story by Charles M Wood

My Angular Story

0 Listeners

My Ruby Story by Charles M Wood

My Ruby Story

0 Listeners

The Diary Of A CEO with Steven Bartlett by DOAC

The Diary Of A CEO with Steven Bartlett

8,395 Listeners

Remote Ruby by Chris Oliver, Andrew Mason

Remote Ruby

34 Listeners

Code with Jason by Jason Swett

Code with Jason

15 Listeners

Cautionary Tales with Tim Harford by Pushkin Industries

Cautionary Tales with Tim Harford

5,150 Listeners

The Rest Is History by Goalhanger

The Rest Is History

15,275 Listeners

The Ezra Klein Show by New York Times Opinion

The Ezra Klein Show

15,890 Listeners

The Rest Is Politics: Leading by Goalhanger

The Rest Is Politics: Leading

784 Listeners