-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
Hola @JeanVillamar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1.Renombrar método
Se debería renombrar nombre del método marshal ya que no sugiere lo que realmente hace el metodo.
refactoring:
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.
refactoring:
3.Inline Temp
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.
The text was updated successfully, but these errors were encountered: