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

A-code quality #4

Merged
merged 3 commits into from
Feb 26, 2024
Merged

A-code quality #4

merged 3 commits into from
Feb 26, 2024

Conversation

huekoh
Copy link
Owner

@huekoh huekoh commented Feb 26, 2024

No description provided.

huekoh and others added 3 commits February 26, 2024 12:05
Parse parse method is too long and handles both input type checking and input format checking.

Having smaller methods to handle the different types of possible inputs makes the code more readable.

Let's update the parser method to handle only input type checking, and abstract out input format checking to appropriate methods.
TaskList constructor method is too long and has duplicated code.

Swapping around the try block to encapsulate the switch block instead of vice versa helps remove duplicate code and improve readability.

Let's update the TaskList constructor method and reduce duplicate codes
@huekoh huekoh merged commit 3aba4a8 into master Feb 26, 2024
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.

1 participant