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

[Improvement] Find ways to incorporate design patterns into our program #66

Closed
Lei-Tin opened this issue Dec 1, 2022 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@Lei-Tin
Copy link
Collaborator

Lei-Tin commented Dec 1, 2022

As requested in the Milestone 4 Rubrics, we can try to find ways and include design patterns in our code.

Current design patterns

At of the current moment, we only have the Builder design pattern for entries & Singleton design pattern for Users. We can think of other ways to incorporate design patterns into our program.

Regarding MySQLDatabaseGateway

Also, I would like to claim that the MySQLDatabaseGateway is in fact, a Strategy design pattern. We have the DatabaseGateway as the Strategy, and we are implementing it concretely by the MySQLDatabaseGateway.

If we decide to extend this to some other database interfaces such as MongoDB or MariaDB, then we can simply create another strategy to include this new strategy.

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

No branches or pull requests

2 participants