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

Build complex types with their functionality #3

Open
unsegnor opened this issue Jun 20, 2019 · 0 comments
Open

Build complex types with their functionality #3

unsegnor opened this issue Jun 20, 2019 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@unsegnor
Copy link
Owner

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.

@unsegnor unsegnor added enhancement New feature or request question Further information is requested labels Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant