DEV Community

Discussion on: Ruby On Rails Best Practice 2020 (for us)

 
simonini profile image
Alessandro

Normally we work on controller and put it inside an interaction (github.com/AaronLasseigne/active_i...) or service object. The solution some times is more verbose but the developer regain control. When you are developing a prototype can be a good idea use "callback and friends" to go faster but when things get complicated we try to avoid it. This rule is not a strict rule but a suggestion to avoid "callback hell"

Thread Thread
 
pepetorres1998 profile image
Jose Antonio Torres Garibay

Thanks man! I'd seriously take this in consideration, we might be in callback hell already πŸ˜