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

Applied a Bridge Structural Design Pattern #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AttSan
Copy link

@AttSan AttSan commented Apr 15, 2021

  • Applied a Bridge Structural Design Pattern to data_prep.py and data_visualization.py modules.

  • Aimed for each module to have a separation of their implementation and their abstraction so different parts can function independently if needed.

  • Created 4 classes (Abstraction, ConcreteAbstraction, Implementation & ConcreteImplementation) in both modules. For ‘data_prep.py’ the methods that handling obtaining relevant countries into the abstraction class and methods handling COVID cases and data into the implementation class. For ‘data_visualization.py’ all methods handling output folders and/or files went into the abstraction class, and the methods on creating graphs and plots into the implementation class.

…visualization.py so each have a separation of their implementation and their abstraction so different parts can function independently if needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant