Skip to content

Structural pattern - applied Bridge Pattern (app/routers/v1.py/)#2

Open
KevinSuh6433 wants to merge 1 commit intomasterfrom
structural
Open

Structural pattern - applied Bridge Pattern (app/routers/v1.py/)#2
KevinSuh6433 wants to merge 1 commit intomasterfrom
structural

Conversation

@KevinSuh6433
Copy link
Owner

Having a neat output is important when displaying COVID-19 information. Also, it's good to have different templates for the different types of COVID-19 information. When displaying just the confirmed cases, the other information like death and recovered cases shouldn't be shown. So having just 1 output is not ideal.

With the Bridge pattern, it 'introduces new abstractions and implementation independently from each other'. So with having different views/outputs and having different data sources will be difficult if we want to make classes for every single combination of the outputs and data sources. The bridge pattern helps us with this problem.

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