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

Adhere to Java code quality standard #6

Merged
merged 7 commits into from
Sep 23, 2024
Merged

Conversation

rithanisk
Copy link
Owner

No description provided.

The Storage class has the task creation logic embedded within the
textFileToArrayList method.

This causes the code to be cluttered and harder to read.

Refactoring the task creation logic into separate methods allows
others looking at the textFileToArrayList method to easily
understand its function.

Let's refactor the task creation logic by extracting the following
methods:
- createTask: Creates Task based on taskSymbol
- createTodoTask: Creates Todo Task
- createDeadlineTask: Creates Deadline Task
- createEventTask: Creates Event Task

This approach simplifies the process of adding new Task types in
the future, enhances the overall code clarity, and improves readability
@rithanisk rithanisk merged commit 2fb065c into master Sep 23, 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