I want to use Builder pattern to create my entities in django, but I discover something very useful, the create_or_update method. If I stick to Build design principles, I think I should not use this method, but for me it's very useful, because this let me make it transparent for the client.
I can create other class, and maybe an intermediate one to use the builder or the method, maybe the Director class? I don't know.
Have any idea? should I use Builder, Director, or another different pattern?
Aucun commentaire:
Enregistrer un commentaire