Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keller-michael/value_objects
🔒 examples of value objects (and immutability)
https://github.com/keller-michael/value_objects
abap example immutability immutable immutable-objects learning-by-doing value-object
Last synced: 3 days ago
JSON representation
🔒 examples of value objects (and immutability)
- Host: GitHub
- URL: https://github.com/keller-michael/value_objects
- Owner: Keller-Michael
- License: mit
- Created: 2023-04-16T19:40:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-19T14:57:22.000Z (about 1 year ago)
- Last Synced: 2024-11-02T07:06:02.591Z (about 2 months ago)
- Topics: abap, example, immutability, immutable, immutable-objects, learning-by-doing, value-object
- Language: ABAP
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :lock: Value Objects
Here's the explanation of value objects from [Wikipedia](https://en.wikipedia.org/wiki/Value_object):
_"In computer science, a value object is a small object that represents a simple entity whose equality is not based on identity:
i.e. two value objects are equal when they have the same value, not necessarily being the same object."_A very interesting aspect of value objects is their immutability - they are [immutable objects](https://en.wikipedia.org/wiki/Immutable_object).
As Wikipedia says:
_"In object-oriented and functional programming, an immutable object (unchangeable object) is an object whose state cannot be modified after it is created."_That means they have their final state after creation. A more than interesting concept for your software design. Therefore I wrote two examples in ABAP, inspired by the book "Clean ABAP".