It seems it would be a better idea to pass a service reference when creating an object and handle adding the object to the service within the object's constructor. The current approach with manually adding objects increases code bloat unnecessarily.
Destroying an object would still be explicit (Remove() from a corresponding service).
It seems it would be a better idea to pass a service reference when creating an object and handle adding the object to the service within the object's constructor. The current approach with manually adding objects increases code bloat unnecessarily.
Destroying an object would still be explicit (
Remove()
from a corresponding service).