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 interface that has only the bare minimum required #2

Conversation

beauxq
Copy link

@beauxq beauxq commented Dec 7, 2023

What is this fixing or adding?

Following principles of object oriented programming, there should be an interface that has only the bare minimum required for what is needed where the object is used.

We can see in the create_rom_file function that, in addition to members from APContainer, the patch only needs to have a result_file_ending, and a patch method.

This interface would give a path for other implementations that don't need or want everything offered by APProcedurePatch

How was this tested?

unit tests

@Silvris Silvris merged commit d13eb50 into Silvris:instruction_patch_clean Feb 15, 2024
9 checks passed
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.

2 participants