Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Missing Guide to Service Objects in Rails

Ruby Central via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk surveys approaches to structuring Rails service objects, handling errors, reusing code, and organizing directories. It compares object-oriented and functional patterns and their tradeoffs.

Syllabus

Introduction
Service Objects
Rails
What are Service Objects
Object Oriented Patterns vs Functional Patterns
Functional Programming in Ruby
LightService
Handling Errors
Nested Conditionals
Dont do this
Raising exceptions
Throwing errors
Return values
True false
Openstructs
Custom Classes
Where to put the code
Outro

Taught by

Ruby Central

Reviews

Start your review of Missing Guide to Service Objects in Rails

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.