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

Adapter design pattern - Improvements in design #164

Open
Shekharrajak opened this issue Sep 1, 2021 · 0 comments
Open

Adapter design pattern - Improvements in design #164

Shekharrajak opened this issue Sep 1, 2021 · 0 comments
Labels

Comments

@Shekharrajak
Copy link
Member

  1. Get rid of all switch blocks and replace it with modules, enum
  2. Use Composite design pattern as much as possible
  3. For each new functions have a module so that only relevant methods can be extended into classes

Refer Dependency injection and better ways to have constructors when the arguments are more than 5 - most of them are optional - what design you should be choosing ? (Hint use Builder for creating objects)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant