How I approach decoupling business logic from the Django ORM.
https://buttondown.com/carlton/archive/decoupling-your-business-logic-from-the-django-orm/ #django #TheStackReport
How I approach decoupling business logic from the Django ORM.
https://buttondown.com/carlton/archive/decoupling-your-business-logic-from-the-django-orm/ #django #TheStackReport
@tintvrtkovic Ooh, good. Spicy 🌶️
I have OPINIONS about keep views bare... so I tend to have logic live in forms[*] — but people hate that too 😜
Glad you liked it. That you liked it before the cattrs reveal is extra nice, but you know I've been using it. (We can finally carry on our conversation: will you be in Bologna?)
[*]: It sounds crazy but is remarkably clean, I promise.
@carlton the argument goes that refactoring into a more abstract service layer on-demand runs into the risk of it being done inexpertly and inconsistently. Which I understand.
I guess, like many things in software engineering, the right call here depends on the people involved and not the technical arguments one way or another