if I have an object, say a recipe, which is added to a database, whose
responsibility is it to add to the db? The recipe or something else?
Let's say I want to delete a recipe? Does the recipe kill itself? Or does
the database or something else do the removal?
Where does the responsibility lie?
Thanks.
responsibility is it to add to the db? The recipe or something else?
Let's say I want to delete a recipe? Does the recipe kill itself? Or does
the database or something else do the removal?
Where does the responsibility lie?
Thanks.
Comment