Artwork

Content provided by Rebase FM. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Rebase FM or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

Episode 20: The Service Object Show

51:14
 
Share
 

Manage episode 270599970 series 2651860
Content provided by Rebase FM. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Rebase FM or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.

The Ruby Blend - Episode 20

Welcome to The Ruby Blend! It's been awhile and it sure feels good to back in the swing of things! Today, we have a new panelist with us, Dave Kimura, who's been doing Ruby for quite some time, as well as doing the Drifting Ruby screencast for over five years now. On this episode, we dive into the topic of Service Object, where do they belong in your app and how do you name it in Ruby on Rails. We discuss namespacing and how to name interactors the correct way. Dave elaborates on Active Storage since he did an episode on Drifting Ruby about it. Have you heard of Backblaze and Digital Ocean? Download this episode now to find out more!

Sponsored by:

Panelists:

Guests:

  • None

Show Notes:

[00:00:54] Dave gives us an introduction of himself and what he does.

[00:02:49] Andrew gives an update on what's been happening in his job
life.

[00:03:58] On the code front, Ron wants to talk about Service Object
and where do they belong in your app as far as file structure goes.
Also, how do you name a Service Object in Ruby, and Rails specifically.
The guys all give their opinions.

[00:17:45] The topic of namespacing service objects in Rails is
discussed.

[00:24:56] Andrew talks about adding comments to the top of the class
and doing something is better than doing nothing.

[00:29:24] Andrew makes a great point about keeping your services as
focused as possible and then call out to other services as needed.

[00:32:57] Andrew is working in a Legacy Rails for code base and he
wonders how he can take some of the ideas about single responsibility
pattern and apply these principles in a Legacy App.

[00:36:02] Andrew and Dave talk about naming interactors and the
importance of the actual method that you're calling it. Also, having a
conversation with your team and reaching a consensus before you start
doing stuff.

[00:38:46] Dave just released a Drifting Ruby episode called, "Bulk
Uploads with Active Storage," and he tells us about it.

[00:42:28] Andrew asks Dave to elaborate on Active Storage feeling
very flushed down, because Andrew doesn't feel like it is.

[00:46:33] Dave tells Andrew about Backblaze B2 Cloud storage and
Andrew mentions Digital Ocean. Here is Dave's actual configuration and
his storage YAMIL file for Backblaze that he's using on Rubidium:

service: S3 access_key_id: <%= ENV['S3_ACCESS_KEY'] %> secret_access_key: <%= ENV['S3_SECRET_KEY'] %> region: us-east-1 bucket: myapp-production endpoint: <%= ENV['S3_ENDPOINT'] %> force_path_style: true
[00:49:34] Dave tells us where we can find him online.

Links:

Credits:

Follow Us:

Transistor.fm is now hosting an archive of the podcast for us. Learn how to start your own podcast!

  continue reading

22 episodes

Artwork
iconShare
 
Manage episode 270599970 series 2651860
Content provided by Rebase FM. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Rebase FM or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.

The Ruby Blend - Episode 20

Welcome to The Ruby Blend! It's been awhile and it sure feels good to back in the swing of things! Today, we have a new panelist with us, Dave Kimura, who's been doing Ruby for quite some time, as well as doing the Drifting Ruby screencast for over five years now. On this episode, we dive into the topic of Service Object, where do they belong in your app and how do you name it in Ruby on Rails. We discuss namespacing and how to name interactors the correct way. Dave elaborates on Active Storage since he did an episode on Drifting Ruby about it. Have you heard of Backblaze and Digital Ocean? Download this episode now to find out more!

Sponsored by:

Panelists:

Guests:

  • None

Show Notes:

[00:00:54] Dave gives us an introduction of himself and what he does.

[00:02:49] Andrew gives an update on what's been happening in his job
life.

[00:03:58] On the code front, Ron wants to talk about Service Object
and where do they belong in your app as far as file structure goes.
Also, how do you name a Service Object in Ruby, and Rails specifically.
The guys all give their opinions.

[00:17:45] The topic of namespacing service objects in Rails is
discussed.

[00:24:56] Andrew talks about adding comments to the top of the class
and doing something is better than doing nothing.

[00:29:24] Andrew makes a great point about keeping your services as
focused as possible and then call out to other services as needed.

[00:32:57] Andrew is working in a Legacy Rails for code base and he
wonders how he can take some of the ideas about single responsibility
pattern and apply these principles in a Legacy App.

[00:36:02] Andrew and Dave talk about naming interactors and the
importance of the actual method that you're calling it. Also, having a
conversation with your team and reaching a consensus before you start
doing stuff.

[00:38:46] Dave just released a Drifting Ruby episode called, "Bulk
Uploads with Active Storage," and he tells us about it.

[00:42:28] Andrew asks Dave to elaborate on Active Storage feeling
very flushed down, because Andrew doesn't feel like it is.

[00:46:33] Dave tells Andrew about Backblaze B2 Cloud storage and
Andrew mentions Digital Ocean. Here is Dave's actual configuration and
his storage YAMIL file for Backblaze that he's using on Rubidium:

service: S3 access_key_id: <%= ENV['S3_ACCESS_KEY'] %> secret_access_key: <%= ENV['S3_SECRET_KEY'] %> region: us-east-1 bucket: myapp-production endpoint: <%= ENV['S3_ENDPOINT'] %> force_path_style: true
[00:49:34] Dave tells us where we can find him online.

Links:

Credits:

Follow Us:

Transistor.fm is now hosting an archive of the podcast for us. Learn how to start your own podcast!

  continue reading

22 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide

Listen to this show while you explore
Play