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

Implementation of Factory Method Pattern in the Todo Class #127

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

Conversation

JGeanca
Copy link

@JGeanca JGeanca commented Jul 5, 2023

This pull request introduces the Factory Method pattern to improve the structure of the "Todo" class. By applying this pattern, hardcoded and non-scalable code is eliminated. The implementation focuses on separating the model logic from the business logic of object creation, enhancing modularity and code comprehension. Abstraction and encapsulation are introduced to address the limitations in the current code. This improvement brings greater flexibility and scalability to the system, allowing for easier addition of new model types with different field sets.

Current design:
mejora8-antes

Design proposed in the PR
mejora8-despues

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.

2 participants