ยท 3 days agoยท Dev.to
Should a single Builder pattern handle both entity creation and updates?
I am implementing the Builder pattern in a Node.js (TypeScript) backend to instantiate a Permission object before passing it to my repository layer.I want to reuse this same Builder for both creating and updating a permission, but the presence of the id and the validation rules change completely dep
#builder-pattern#nodejs#typescript#cloud-computing