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

remove ControllerVisitor #3634

Merged
merged 1 commit into from
Feb 15, 2021
Merged

remove ControllerVisitor #3634

merged 1 commit into from
Feb 15, 2021

Conversation

Be-ing
Copy link
Contributor

@Be-ing Be-ing commented Feb 15, 2021

This class served no purpose but made the code overcomplicated.
DlgController already checks Controller's isMappable method to
determine whether to enable the button to create
DlgControllerLearning.

This is a step towards decoupling the legacy mapping system from the hardware I/O of the Controller classes. No functionality is changed by this PR.

This class served no purpose but made the code overcomplicated.
DlgController already checks Controller's isMappable method to
determine whether to enable the button to create
DlgControllerLearning.
@uklotzde
Copy link
Contributor

uklotzde commented Feb 15, 2021

Did you check if LegacyControllerMappingVisitor/ConstLegacyControllerMappingVisitor are still required?

Applying those GoF patterns with such a generic naming is fishy. Made these mistakes myself back then, that's why I mention it ;)

@Be-ing
Copy link
Contributor Author

Be-ing commented Feb 15, 2021

Did you check if LegacyControllerMappingVisitor/ConstLegacyControllerMappingVisitor are still required?

Removing those will be the next step. Let's keep each step as small as possible.

@Be-ing
Copy link
Contributor Author

Be-ing commented Feb 15, 2021

I don't understand the reasoning for introducing such roundabout code rather than using a cast in the first place. It dramatically increases coupling, makes the code extremely confusing, and offers no benefit as far as I can tell.

Copy link
Contributor

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM

@uklotzde
Copy link
Contributor

I don't understand the reasoning for introducing such roundabout code rather than using a cast in the first place. It dramatically increases coupling, makes the code extremely confusing, and offers no benefit as far as I can tell.

Pattern driven development ;)

@uklotzde uklotzde merged commit cf62c81 into mixxxdj:main Feb 15, 2021
@Be-ing
Copy link
Contributor Author

Be-ing commented Feb 15, 2021

Textbook driven development? 🤷 Not appropriate for real code

@Be-ing Be-ing deleted the controller_visitors branch February 15, 2021 12:01
@Holzhaus
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants