Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Primitive Obsession #10

Open
PaulaPeraltaA opened this issue Jan 14, 2023 · 0 comments
Open

Primitive Obsession #10

PaulaPeraltaA opened this issue Jan 14, 2023 · 0 comments

Comments

@PaulaPeraltaA
Copy link

Como se puede ver en la clase Payment se tiene al atributo fecha como String que no permite aprovechar todas las propiedades si se usará el tipo de dato Date. Para cambiar esto se tiene como solución usar el refactoring Replace data value with object que logra pareciar la orientación a objetos y el códigpo se vuelve más fácil de mantener.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant