#Value Objects in different bounded contexts

1 messages · Page 1 of 1 (latest)

unkempt creek
#

Hi, for example I have value object AccountEmail in module 'Client panel' and 'Admin panel'. In this case should I:

  • put AccountEmail in one of these modules and reuse it in another?
  • duplicate this identical logic as ClientEmail and AdminEmail?
  • put it in some 'utils/shared' module?
    Should i keep value objects on package private level? How to organize e.g. 10 value objects in 1 package? In this case it is hard readable despite the value of encapsulate
winged pecanBOT
#

<@&987246399047479336> please have a look, thanks.

viral zodiac
#

when in doubt, duplicate

#

but it depends on what overall shape your code takes

unkempt creek
#

okee, so I thought well, thanks