-
Notifications
You must be signed in to change notification settings - Fork 286
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
Changing authority of Optional/Required Addons #607
Conversation
I'm kind of wondering if we should change the name of the class |
The overall looks good. I have similar concern about the names though. The class name Also, if we don't have any alternative then changing |
I think a verb makes sense in a class name if the class itself does not stand alone. If its purpose is to augment a more complete type, then a verb name would be good for expressing this role (IMO). We would never have an object that is simply a |
I generally agree with @jslee02's argument that class names should be nouns. However, in this case, I agree with @mxgrey. Changing I think we should stick with the verb names. Like @jslee02 suggested, we should also change |
Okay, @mxgrey Can you change |
The renaming has now been pushed. |
Thanks! Will merge once Travis-CI tests are passed. |
Just chiming in here: I believe it's pretty common for mixins to have verb/adjective naming, since they are often being used to describe properties that an existing class is taking on as a result of the inheritance rather than defining a class itself. This naming makes sense under that convention. |
Changing authority of Optional/Required Addons
In the current implementation of "optionality" for Addons, it is an Addon that decides for itself whether it is optional for a given Manager type. This is semantically backwards, since the Manager owns the Addon and should therefore have authority over whether the Addon is considered optional or required.
This pull request reverses this relationship. Now a Manager can specify which Addons are required for it in a similar fashion to how Addons can be specialized for it. In fact, declaring an Addon as "required" will also automatically specialize the Addon for that Manager.