--

in your case, the email is not essential to the user (since you are allowing the change)

therefore i should not belong to it.

Essential attributes should be immutable

Accidental attributes can mutate (and don't belong to the entity)

--

--

Maximiliano Contieri
Maximiliano Contieri

Written by Maximiliano Contieri

I’m a senior software engineer specialized in declarative designs. S.O.L.I.D. and agile methodologies fan. Maximilianocontieri.com

Responses (1)