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 #4 #14

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Group #4 #14

wants to merge 13 commits into from

Conversation

dejavu9127
Copy link

Library System refactoring

def borrow_book(self) -> "BorrowedBook":
if self.can_borrow():
if self._book_type == "Paper":
if BookTypeProcessor.book_check_reqrd(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

In my opinion, the readability of the if statement decreased here. You could follow the prefix pattern (is should need etc) for methods returning a bool.

firstname: str
lastname: str
_firstname: str
_lastname: str

Copy link
Collaborator

Choose a reason for hiding this comment

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

To make the code symmetric, you could additionally declare _uid as a member variable here.

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