CSC207-2022F-UofT / course-project-bill-gates

A bill recording software developed by team "Bill Gates."
9 stars 4 forks source link

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

Closed Lei-Tin closed 1 year ago

Lei-Tin commented 1 year ago

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.