4 ms·
Maybe I'm doing it wrong, but I've regretted my previous choice of using the Draper Gem and Decorators when coming back to old projects. I found Decorators jus
by firecall 1y ago
Maybe I'm doing it wrong, but I've regretted my previous choice of using the Draper Gem and Decorators when coming back to old projects.
I found Decorators just obscured display logic away in an inconvenient way.
- RangerScience 1y agoMight've been wise at the time, but nowadays I think the recommendation is to use View Components to package up view logic. (I'm personally so-so on VCs; I think the core idea is pretty good but I'm not super sold on some of the implementation details - too OOP, not enough `yield`)