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 #10

Open
JeanVillamar opened this issue Aug 17, 2021 · 1 comment
Open

Refactoring #10

JeanVillamar opened this issue Aug 17, 2021 · 1 comment

Comments

@JeanVillamar
Copy link

1.Renombrar método
Se debería renombrar nombre del método marshal ya que no sugiere lo que realmente hace el metodo.
image
refactoring:
image

2.Reemplazar Parámetro con Métodos Explícitos
Al usar el método addContent de clotheLuggage se debería hacer de una manera más eficiente ya que si el programa crece y se requiera agregar mas atributos ese método no seria el adecuado, se debería hacer otro método que reciba lista de String por ejemplo.
image
refactoring:
image

3.Inline Temp
image
Se usa la variable carObj para asignar un valor de manera temporal y luego no se usa mas, para eso refactorizamos reemplazando la variable con la expresión logrando asi mejorar marginalmente la legibilidad del programa al deshacerse de la variable innecesaria.
image

@egenerat
Copy link
Owner

Hola @JeanVillamar
Gracias por tus comentarios!
No dude en abrir pull requests

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

2 participants