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 #150

Closed darshil closed 3 years ago

darshil commented 3 years ago

According to Wikipedia “refactoring is the process of restructuring existing code—without changing its external behavior.” Keeping this definition in mind, the refactoring work I have done ensures that there are no broken changes and that all existing functionality is still the same, so people upgrading the package will not be effected.

I decided that it was best to use a Bridge pattern. The bridge pattern makes it easy to extend new features and makes the code a lot more readable. These two things are very important in an open source project.