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

Comments code smell #3

Open
ghost opened this issue Jan 3, 2021 · 0 comments
Open

Comments code smell #3

ghost opened this issue Jan 3, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 3, 2021

Comments

En la clase ​ GUI se está definiendo el comportamiento para el botón de compras y ha sido
necesario usar comentarios en ciertas validaciones para que sean medianamente
entendibles, develando un Comments code smell.

Screenshot from 2021-01-03 12-41-43

Extract Variable

Se ha extraído una variable que representa el valor booleano a evaluar dentro del
condicional, sin mencionar que fue necesario dividir las expresiones involucradas en la
comparación del ​ else if. ​ De esta manera ahora el código es más legible y mantenible.

Screenshot from 2021-01-03 12-42-00

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

No branches or pull requests

0 participants