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

  • 3.4
  • 3.4
  • 3.4
  • 3.4
  • 3.4

3.4

21 ratings


More shows like Ruby Rogues

View all
Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

Software Engineering Radio - the podcast for professional software developers

272 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

283 Listeners

JavaScript Jabber by Charles M Wood

JavaScript Jabber

235 Listeners

iPhreaks by Charles M Wood

iPhreaks

17 Listeners

Ruby Rogues by Charles M Wood

Ruby Rogues

45 Listeners

The Freelancers' Show by Charles M Wood

The Freelancers' Show

23 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

The Bike Shed by thoughtbot

The Bike Shed

121 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

624 Listeners

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

React Native Radio

59 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

269 Listeners

My JavaScript Story by Charles M Wood

My JavaScript Story

4 Listeners

JavaScript Jabber by Charles M Wood

JavaScript Jabber

61 Listeners

Adventures in Angular by Charles M Wood

Adventures in Angular

15 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

982 Listeners

REWORK by 37signals

REWORK

211 Listeners

Remote Ruby by Chris Oliver, Andrew Mason

Remote Ruby

34 Listeners

Maintainable by Robby Russell

Maintainable

32 Listeners

The Stack Overflow Podcast by The Stack Overflow Podcast

The Stack Overflow Podcast

64 Listeners

Code and the Coding Coders who Code it by Drew Bragg

Code and the Coding Coders who Code it

6 Listeners

Rooftop Ruby Podcast by Collin Donnell, Joel Drapper

Rooftop Ruby Podcast

3 Listeners

IndieRails by Jess Brown & Jeremy Smith

IndieRails

5 Listeners

Dead Code by Jared Norman

Dead Code

0 Listeners