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 Aggregation #72

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

azhan619
Copy link

Hi,

I've added some aggregation to your code, the reason being that I think this can make code look cleaner and helps to understand the concepts for the reader. First thing that I did was to separate the code that gets the data. Since this repository is dependent on another backend API to get data sources, I've made another class called fetchData(), the reason being that if there's no data then there is no point of calling other methods and this will make it more easier to understand as to get sources we need link of an API, since these 2 things are dependent, I've applied aggregation to it.

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