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 #5 #36

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

Group #5 #36

wants to merge 3 commits into from

Conversation

dejavu9127
Copy link

Code refactoring from Group5

@dejavu9127 dejavu9127 marked this pull request as ready for review November 22, 2023 13:15

HtmlUtil._suite_action(wiki_page, string_io, html_data, action="SetUp")

string_io.writelines([html_data.page_data.get_content()])
Copy link
Author

Choose a reason for hiding this comment

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

Unsure if this writelines needs to be executed here

@alextsakpinis alextsakpinis changed the title Group5 Group #5 Nov 22, 2023
class HtmlProcessData:
page_data: PageData
page_crawler: PageCrawlerImpl
path_parser: PathParser

Copy link
Collaborator

Choose a reason for hiding this comment

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

An additional class of HTML parameters may not be necessary



class HtmlUtil:
@staticmethod
def _suite_action(
Copy link
Collaborator

Choose a reason for hiding this comment

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

This name may not be proper to understand what the function is doing

Copy link
Collaborator

Choose a reason for hiding this comment

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

Overall, I would say that this refactor does not necessarily improve the readability, it only gets rid of the code duplication

)

if suite_action is not None:
page_path: WikiPagePath = wiki_page.get_page_crawler().get_full_path(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe factor out these few lines into their own function to improve readability, for example "write_page" or similar

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