Skip to content

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