Currently, load_household_data.py has code without being sorted into methods or classes, having nothing tying it together to allow it to be treated as a single unit.
Solution
A solution to this is applying aggregates. This allows for clarity in domain driven design. Additionally, it allows for invariants to be applied and maintained to closely related objects, rather than having it applied to each object individually.
How?
This was done by adding root Household. As this is our root, we can treat the methods within it as a single unit when it comes to things such as invariants.
Please Note**** that these changes are part of a school project.
Problem
Currently,
load_household_data.py
has code without being sorted into methods or classes, having nothing tying it together to allow it to be treated as a single unit.Solution
A solution to this is applying aggregates. This allows for clarity in domain driven design. Additionally, it allows for invariants to be applied and maintained to closely related objects, rather than having it applied to each object individually.
How?
This was done by adding root
Household
. As this is our root, we can treat the methods within it as a single unit when it comes to things such as invariants.Please Note**** that these changes are part of a school project.