3 ms·
Prescriptive example from the article: userRoles.addMember( p ); RoleAssignedEvent.publish( p, roleName ); Seems to have the exact same risk of divergence. D
by aranchelk 5y ago
Prescriptive example from the article:
userRoles.addMember( p );
RoleAssignedEvent.publish( p, roleName );
Seems to have the exact same risk of divergence.
Depending on the language you can (and I have) used decorators/higher order functions to log the invocation of a function with its name and arguments. Zero risk of divergence there, but it was still logging not some kind of event system. The problem of divergence seems to me to be orthogonal.