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

Define usage of interfaces without body #13

Open
PauliusMacernis opened this issue Nov 6, 2019 · 0 comments
Open

Define usage of interfaces without body #13

PauliusMacernis opened this issue Nov 6, 2019 · 0 comments
Labels
question Further information is requested rule Issues related to adding/removing/changing code standard rules

Comments

@PauliusMacernis
Copy link
Member

Does it make any sense to have an empty interface (I mean, without any methods defined)?

In my current point of view - empty interfaces do not make sense because these tells nothing about the usage and most likely link to a wrong code architecture after all. If this is not the case of a wrong architecture then chances are very high such cases are linking to premature optimization which is considered a bad practice anyways.

Consider adding the rule that there should not be any empty interfaces, nor other type of abstractions inside the code base.

@PauliusMacernis PauliusMacernis added question Further information is requested rule Issues related to adding/removing/changing code standard rules labels Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested rule Issues related to adding/removing/changing code standard rules
Projects
None yet
Development

No branches or pull requests

1 participant