All Ruby Podcasts By Devchat.tv
RR 409: Turning Fat Models Into Skinny POROs with Jason Swett
- Autor: Vários
- Narrador: Vários
- Editora: Podcast
- Duração: 0:50:28
- Mais informações
Informações:
Sinopse
SponsorsSentry use code “devchat” for 2 months freeTriplebyte $1000 signing bonusRedisgreenPanelCharles Max WoodDave KimuraSpecial Guest: Jason SwettEpisode SummaryJason Swett is a former host on Ruby Rogues. Now he has his own show, Ruby Testing Podcast and runs the site codewithjason.com where he teaches Rails testing. Today, Jason discusses turning fat models into skinny POROs (Plain Old Ruby Objects). He once read an article that said you don’t have to put all your code into active record models, that you can create plain ruby objects. These can go into active models if you want, but you’re not limited to active record models, you can make your own classes. This realazition greatly impacted the way he structures his code.The panelists talk about the individual ways the structure their code. Jason discusses other structuring methods he has tried and gives some examples of using skinny POROs in the apps he works on. They discuss the pros and cons of using skinny POROs instead of active models, pros being it