Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rearrange packages to be vertically grouped rather than layered #242

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karmakaze
Copy link

@karmakaze karmakaze commented Oct 2, 2019

Issue #209 Package structure: Vertical over horizontal slicing

Here's a first-go at organizing packages vertically by feature rather than layered by type.
There's still some low-level layer package (e.g. network) which I think is fine as long as it isn't specifically related to an application feature.

The other package containing EntityTypeAdapterFactory along with ApplicationModule and ModelsModule in the top package seem like they could be in a modules package name to mean assembly, dependency injection, or something to that effect.

The performance and subscription also seem like related task handling facility.

In all vertically looks much simpler and easier to work with. Here's a screenshot.

reorganize-packages-vertically

[I couldn't test build/run just now on my platform as my java version is 12 and gradle/build-scan seem to have issues with it around "Could not set unknown property 'licenseAgreementUrl' for com.gradle.scan.plugin...".]

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.

1 participant