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

Update FizzStrategy.java #510

Open
wants to merge 1 commit into
base: uinverse
Choose a base branch
from
Open

Update FizzStrategy.java #510

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 31, 2021

More professional!

More professional!
@radrow
Copy link

radrow commented Apr 20, 2021

I am a bit worried about these primitive booleans. I think we should implement a proper internal wrapper and construct them with a factory.

@ghost
Copy link
Author

ghost commented Apr 20, 2021

defo should box and unbox them 🤦

Copy link

@Asiant Asiant left a comment

Choose a reason for hiding this comment

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

LFTM

@matthew-lim-matthew-lim

LGTM 👍

Copy link

@radrow radrow left a comment

Choose a reason for hiding this comment

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

As mentioned earlier on, primitive booleans are not considered best industry practice. Please implement a proper boolean-based decision making framework with strategies, adapters and factories. Otherwise you are just contributing to the technical debt with little company or customer benefit.

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.

3 participants