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

Refactoring #35

Open
tyichye opened this issue Jun 18, 2021 · 0 comments
Open

Refactoring #35

tyichye opened this issue Jun 18, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tyichye
Copy link
Owner

tyichye commented Jun 18, 2021

There are classes that perform tasks outside their scope.
An example - code to handle date drawing inside the widget circle was inserted as part of the configuration class instead of the widgetProvider class who is responsible for drawing the widget.

Using composition design pattern the configuration class can hold widgetProvider object and call the widgetProvider draw function to draw the widget on the screen. Inside widgetProvider draw function we will implement the date drawing.

@tyichye tyichye added enhancement New feature or request help wanted Extra attention is needed labels Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant