后端

Build Sleek Rails Components With Plain Old Ruby Objects

By Eqbal古兰经

Your website is gaining traction, and you are growing rapidly. Ruby/Rails is your programming language of choice. Your team is bigger and you’ve given up on “fat models, skinny controllers” as a design style for your Rails apps. 然而, you still don’t want to abandon using Rails? 没有问题. 在本文中, Toptal Software Engineer Eqbal古兰经 explains how you can decouple and isolate your Rails components using nothing Plain Old Ruby Objects. Ruby objects and abstractions can decouple concerns, 简化测试, and help you produce clean, 可维护的代码.

18分钟阅读继续阅读

加入总冠军® 社区.