Skip to content

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?


}

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.

2 participants