Skip to content

Update FizzStrategy.java#510

Open
ghost wants to merge 1 commit intouinversefrom
unknown repository
Open

Update FizzStrategy.java#510
ghost wants to merge 1 commit intouinversefrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Mar 31, 2021

More professional!

More professional!
@radrow
Copy link
Copy Markdown

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
Copy Markdown
Author

ghost commented Apr 20, 2021

defo should box and unbox them 🤦

Copy link
Copy Markdown

@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
Copy link
Copy Markdown

LGTM 👍

Copy link
Copy Markdown

@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