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
Structural Pattern
#141
Closed
DanRechtman
closed
2 years ago
DanRechtman
commented
3 years ago
What does this implementation do?
Implements this project using the Bridge Pattern
Adds AbstractAPI interface, and COVIDAPI class implements the interface
Adds implementation interface, and 3 classes that implement it.
Benefits
Decouples an abstraction from its implementation, so I decoupled the COVID19 class so it can vary more and be a lot more flexible.
Maintains the SOLID principle, by having each class has only a single responsibility unlike before.
Makes code a lot easier to read.
What does this implementation do?
Benefits