by
Iβve been starting on a refactoring of Tanzawa to help improve maintainability.
Iβm taking a layered approach where each package is broken down into a data layer (models) at the bottom, queries (data access) above that,Β application (business logic) above that and finally your views at the top.
The idea being that the top layers can go down the stack, but upper layers canβt go up. Iβm not sure if Iβm going to enforce it via linting, but I probably will, eventually.
Weβve been using a similar structure at work and once you get used to it, itβs quick to find the code youβre looking for and keeps things tidy. And linting helps enforce it when we forget or want to be lazy. π
Iβm taking a layered approach where each package is broken down into a data layer (models) at the bottom, queries (data access) above that,Β application (business logic) above that and finally your views at the top.
The idea being that the top layers can go down the stack, but upper layers canβt go up. Iβm not sure if Iβm going to enforce it via linting, but I probably will, eventually.
Weβve been using a similar structure at work and once you get used to it, itβs quick to find the code youβre looking for and keeps things tidy. And linting helps enforce it when we forget or want to be lazy. π