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

Refactoring Method #20

Open
JamesIGT opened this issue Jan 12, 2025 · 0 comments
Open

Refactoring Method #20

JamesIGT opened this issue Jan 12, 2025 · 0 comments

Comments

@JamesIGT
Copy link

Siguiendo las reglas de refactorizacion. El método canFit() de la clase TetrisGrid.java. Tiene múltiples condicionales que conducen al mismo resultado o acción. Las ventajas de esta refactorización son: mejorar la legibilidad al agrupar condiciones relacionadas en una sola expresión, haciendo el código más claro y menos propenso a errores.
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

No branches or pull requests

1 participant