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

Why not just place data source methods into a superclass? #5

Open
krisanthony opened this issue Apr 21, 2015 · 0 comments
Open

Why not just place data source methods into a superclass? #5

krisanthony opened this issue Apr 21, 2015 · 0 comments

Comments

@krisanthony
Copy link

I'm at a loss to the advantage here. Seems to me you'd have the same amount of code, and the same number of files if you just moved the code to a superclass rather than another object.

Ex:
superclass with photoDataSource methods
subclass
2 files

object with photoDataSource methods
uiviewcontroller with object set as datasource
2 files

Is there an advantage I am missing to not just placing all the photoDataSource methods into a superclass rather than a separate object?

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

No branches or pull requests

1 participant