issues
search
Kamaropoulos
/
COVID19Py
A tiny Python package for easy access to up-to-date Coronavirus (COVID-19, SARS-CoV-2) cases data.
https://pypi.org/project/COVID19Py/
GNU General Public License v3.0
84
stars
57
forks
source link
Creational Pattern
#140
Closed
DanRechtman
closed
3 years ago
DanRechtman
commented
3 years ago
What does this implementation do?
This implements the factory pattern ( creational pattern ) to this project.
Added ICOVD19 Interface, and implementation of the interface ConcreteAPIDefault, and ConcreteAPIMirror
Change COVID19 class to a creator class that creates the object in runtime
Benefits
Added useful abstractions to the project
Maintains the SOLID principle by making sure each class is single responsibility
Ease of use, it make the project easier to read.
What does this implementation do?
Benefits