🦠A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
What:
Added factory design pattern for the creation of different locations
Why
Different locations have similar parameters with minor differences while creating, so creating them with a factory method makes code more readable and easier to compare the logic of the creation
How
Created a factory class and a creation method for all different types of locations, replace invocation of original location constructor with a method call
What: Added factory design pattern for the creation of different locations
Why Different locations have similar parameters with minor differences while creating, so creating them with a factory method makes code more readable and easier to compare the logic of the creation
How Created a factory class and a creation method for all different types of locations, replace invocation of original location constructor with a method call