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

Feedback #1

Open
wants to merge 6 commits into
base: feedback
Choose a base branch
from
Open

Feedback #1

wants to merge 6 commits into from

Conversation

github-classroom[bot]
Copy link

@github-classroom github-classroom bot commented Nov 22, 2024

👋! GitHub Classroom created this pull request as a place for your teacher to leave feedback on your work. It will update automatically. Don’t close or merge this pull request, unless you’re instructed to do so by your teacher.
In this pull request, your teacher can leave comments and feedback on your code. Click the Subscribe button to be notified if that happens.
Click the Files changed or Commits tab to see all of the changes pushed to the default branch since the assignment started. Your teacher can see this too.

Notes for teachers

Use this PR to leave feedback. Here are some tips:

  • Click the Files changed tab to see all of the changes pushed to the default branch since the assignment started. To leave comments on specific lines of code, put your cursor over a line of code and click the blue + (plus sign). To learn more about comments, read “Commenting on a pull request”.
  • Click the Commits tab to see the commits pushed to the default branch. Click a commit to see specific changes.
  • If you turned on autograding, then click the Checks tab to see the results.
  • This page is an overview. It shows commits, line comments, and general comments. You can leave a general comment below.
    For more information about this pull request, read “Leaving assignment feedback in GitHub”.

Subscribed: @MarcosSilva2001

Copy link

@npasserini npasserini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu parcial está aprobado pero no es suficiente para aprobar.

class Persona {
var edad
var emociones = []
var valorElevado

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debería ser único globalmente.

var emociones = []
var valorElevado

method esAdolecente() = (edad >= 12) && (edad <= 19)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adoleScente.

)
}

method vivirEventoEnGrupo(grupo, unEvento) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No es correcto que esto sea un método en una persona.

}

class Emocion {
var intensidad = 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No es necesario dar valores iniciales a todos los atributos, 0 no es un buen valor por defecto acá.

palabrotas.add(palabra)
}

method esIntensidadElevada() = intensidad > Persona.valorElevado

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esto no es código válido.

self.esIntensidadElevada() && palabrotas.any({ palabra => palabra.size() > 7 })

override method liberarse(unEvento) {
if (self.puedeLiberarse()) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repite código.

intensidad = valor
}

override method puedeLiberarse() = intensidad > Persona.valorElevado && (eventosVividos % 2) == 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repite código.

// Por parte de Herencia Ansiedad hereda atributos intensidad, eventosVividos y el metodo registrarEvento de Emocion.
// Sobrescribe metodos como puedeLiberarse y liberarse para implementar su propio comportamiento.

// Por parte del polimorfismo tenemos una clase base Emocion con metodos como puedeLiberarse y liberarse.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No explica correctamente el aprovechamiento de la herencia ni el polimorfismo.


var grupo = [persona1, persona2]

persona1.vivirEventoEnGrupo(grupo, evento)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Falta modelar el grupo correctamente.

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

Successfully merging this pull request may close these issues.

2 participants