Skip to content

Conversation

@JoyBiao
Copy link

@JoyBiao JoyBiao commented Jul 24, 2021

Hi, sorry to disturb you.
I think Class Location is dealing with too many attributes, so I just want to put everything related to country into a class(an aggregation), like country _code and country_population, state, province and county.
I changed utils/countries.py to a class named Country, which is the aggregate root. I turned population.py into a class so that Country class has a reference to it. So, when objects outside aggregate boundary can only have a reference to the Country class.

@Kilo59 Kilo59 closed this Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants