3 ms·
This is how I get all my teams to work. The code goes in app/services folder though. Lib is for 3rd party stuff. A project I worked on last year also implement
by rorykoehler 10y ago
This is how I get all my teams to work. The code goes in app/services folder though. Lib is for 3rd party stuff.
A project I worked on last year also implemented what they called 'use-cases' which were essentially model-view classes to extract and prepare data for the views.
- gjorquera 10y agoYeah, app/services might be a better fit. I'm glad that there are teams stearing away from fat models. Or fat anything, actually, as they usually violate the SRP. How did the 'use cases' work for you?
- rorykoehler 10y agoUse cases are essentially classes that hold large sql queries etc to prepare data for use in the view. We were working on analytics visualisations for large volumes of data.