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

Implemnting Patterns of Desing: #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jair-chaguay
Copy link

Singleton
Es recomendable usar el patrón de diseño ConfigProvider para poder asegurar que solo exista una sola instancia y en este caso como ConfigProvider se utiliza como un proveedor de configuración y si hubiese varias instancias tendrian distintas configuraciones, es decir usamos Singleton para que los componentes accedan a la misma instancia de configuración.
Singleton drawio

@jair-chaguay
Copy link
Author

It is recommended to use the Decorator Design pattern in the SlackExecutor class to be able to add additional functionality, such as event logging or runtime logging. And so it is required to add more functionalities, they can be added without any problem.
Decorator drawio

@edu-gab
Copy link

edu-gab commented Aug 18, 2023

Podrias refactorizar tu codigo: la clase UIValue no tiene mucha relevancia al solo tener un metodo que se puede implementar en las clases que se necesite, la clase Config tiene muchos parametros en su constructor y la clase TaskConfig solo tiene getters y setters.
image
image
image
image
image
image

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