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

Group 1 - Petclinic refactoring WIP #21

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

florianvoigtlaender
Copy link

No description provided.

@florianvoigtlaender florianvoigtlaender changed the title WIP Group 1 - Petclinic refactoring WIP Sep 7, 2021
}
}
}
private List<String> convert_csv_to_lines(String csv)

Choose a reason for hiding this comment

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

I like your idea to create function convert_csv_to_lines and segment_line_to_entries :)
Try to use one consistent naming notation (e.g., camel case)

}

private boolean isSamePet(Pet pet1, Pet pet2)

Choose a reason for hiding this comment

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

I like that you did not use more than 2 indentations (except in this method isSamePet but you would have improved this probably with more time)

List<Pet> pets = new LinkedList<Pet>();
Pet pet;

do {
pet = new Pet();
List<String> splitCSV = segment_line_to_entries(csv);

Choose a reason for hiding this comment

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

you could think about extracting this content to a new method to separate the responsibilities further

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