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

Statedesign #287

Closed harism91 closed 3 years ago

harism91 commented 3 years ago

Related Issue:

*By applying the state design pattern we are able to simplify the different models that are used in the integrator file, creating a class for the models. The reason for applying this pattern is that it is able to simplify code snippets when having numerous states which state-specific code changes frequently, Organize the code related to particular states into separate classes, Introduce new states without changing existing state classes or the context, Simplify the code of the context by eliminating bulky state machine conditionals.

Proposed Changes

Addtional Info

Checklist

Screenshots