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

Refactor package names #515

Closed
Tracked by #506
luongvo opened this issue Aug 31, 2023 · 0 comments · Fixed by #511 or #520
Closed
Tracked by #506

Refactor package names #515

luongvo opened this issue Aug 31, 2023 · 0 comments · Fixed by #511 or #520
Assignees
Milestone

Comments

@luongvo
Copy link
Member

luongvo commented Aug 31, 2023

Why

As presented via this presentation, we need to refactor package names to support the KMM Templates in a consistent way across templates.

As we're mixing between singular and plural in our codebase. I see the benefit and purpose of using plurals to explicit that the package contains multiple classes of the same type. Checking out some sample projects around, we can see this point of plural naming usage:

After researching, I found this best practice that could be applied to our template:

  • Use the plural for packages with homogeneous contents.
  • Use the singular for packages with heterogeneous contents.

https://softwareengineering.stackexchange.com/questions/75919/should-package-names-be-singular-or-plural

Who Benefits?

Developers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment