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

Code: Introduce segregated interfaces for class Options #79

Open
smarkwal opened this issue Jan 2, 2022 · 0 comments
Open

Code: Introduce segregated interfaces for class Options #79

smarkwal opened this issue Jan 2, 2022 · 0 comments
Labels
techdebt Technical debts

Comments

@smarkwal
Copy link
Owner

smarkwal commented Jan 2, 2022

Introduce interfaces for components depending on Options.

Example: If BlacklistAnalyzer has a dependency on class Options, introduce an interface BlacklistAnalyzerOptions, implement it in Options, and then change the dependency to this new interface.

Before: BlacklistAnalyzer(Options options)

After: BlacklistAnalyzer(BlacklistAnalyzerOptions options) and Options implements BlacklistAnalyzerOptions

@smarkwal smarkwal added the techdebt Technical debts label Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
techdebt Technical debts
Projects
None yet
Development

No branches or pull requests

1 participant