nat236919 / covid19-api

API for exploring COVID-19 cases around the globe
https://nuttaphat.com/covid19-api/
MIT License
119 stars 63 forks source link

Application of Software Engineering code design patterns #274

Closed walkerverchiel closed 3 years ago

walkerverchiel commented 3 years ago

Related Issue:

Code inside the covid_api_v2_model file was not well refactored and contained too many unnecessary repetition

Proposed Changes

Changed the code design for the covid_api_v2_model and added a creational design pattern which is the builder pattern to make the code more readable and manageable

Addtional Info

For builder pattern I removed some unnecessary attributes from models and inherited them from a builder class instead

Checklist

Screenshots

walkerverchiel commented 3 years ago

..