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

Turning in Bob and Alice #29

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

Conversation

EricBarnaba
Copy link

I somehow managed to push my workingbranch up to GitHub instead of my Master (this git stuff is confusing), but this is my final version of the program and I THINK this pull request will still allow me to turn it in?

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

}

public static boolean isBob (String name){
Copy link
Contributor

Choose a reason for hiding this comment

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

Good use of the SRP programming principle. 👍

return false;
}

public static boolean isAlice (String name){
Copy link
Contributor

Choose a reason for hiding this comment

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

Thumbs up for the SRP 👍
Thumbs down for the code redundancy...

Notice the similarities between isBob and isAlice.
When you see patterns of redundancy like this, it means it can be abstracted.

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.

None yet

2 participants