DRY entities #7
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BurrowStudios/Obelisk!7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/dry-entities"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rewrite the whole resource / entity system so that it adheres to the DRY-principle (Right now, there is far too much boilerplate code).
One approach might be to use the interfaces in the API module to reverse-engineer data classes and database schemes. Though, this may cause some issues as it cannot accommodate any special cases.
Another approach could be a stricter definition of each resource in a YAML file that would be used as a template for data storage. This would allow for more fine-grained debugging and development, while requiring at least some boilerplate code, as entities would have to be defined in both YAML files and API interfaces (which would have to be kept in sync).
This starts as a draft as it is an experimental feature that will need some tests to be implemented in the first place.