4 ms·
> But my biggest gripe is how Rails lacks a space for business logic. You can literally create a directory called app/my_actual_app and put all your business l
by Toutouxc 3y ago
> But my biggest gripe is how Rails lacks a space for business logic.
You can literally create a directory called app/my_actual_app and put all your business logic in there, Rails will even autoload it for you.
IMO it’s the sudden change from the “we’ll hold your hand every step of the way and offer tools and workflows for everything” web part (controllers, routing, ORM) to the “go and build your goddamn app” dealing with business logic. So many (especially new) devs try to stay in the cozy zone of having a nice name for everything at all costs, so they try to cram everything into “services” and “decorators” and “interactors” (yuck) and they’ll build business logic out of callbacks on ActiveRecord models and overload the poor things with dozens of “concerns” instead of, you know, going and building a goddamn Ruby app.