You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Examples
Jhon wants to modify the color of its house
so it takes the house from the repository with the house id
and then executes the house method "change color" to "freedom"
the system says that this color does not exist in the system
the user knows that its action was not possible because of a validation
Rules
We should be able to add validation methods to the objects and get those methods also when loading them from the repository.
We should be able to add any method to the objects and get them again when loading the object from the repository.
Doubts
This would allow us to work in a more OO way, storing the data and the behavior together. Ther are some issues to disscuss: How are we modifying the behavior once it is stored? there could be different versions of the classes and then we should write the way the previous version must be updated, in fact that could be the only way to make changes to a class: describing how to change it.
Developer Notes
For the moment we can achieve this behavior with external methods "change house color" that recevies a house and the color and makes the validation or whatever.
The text was updated successfully, but these errors were encountered:
Examples
Jhon wants to modify the color of its house
so it takes the house from the repository with the house id
and then executes the house method "change color" to "freedom"
the system says that this color does not exist in the system
the user knows that its action was not possible because of a validation
Rules
We should be able to add validation methods to the objects and get those methods also when loading them from the repository.
We should be able to add any method to the objects and get them again when loading the object from the repository.
Doubts
This would allow us to work in a more OO way, storing the data and the behavior together. Ther are some issues to disscuss: How are we modifying the behavior once it is stored? there could be different versions of the classes and then we should write the way the previous version must be updated, in fact that could be the only way to make changes to a class: describing how to change it.
Developer Notes
For the moment we can achieve this behavior with external methods "change house color" that recevies a house and the color and makes the validation or whatever.
The text was updated successfully, but these errors were encountered: