0

Having there is an entity called Product. It has a lot of properties stored, such as price, shortDescription, id, fullDescription, pictures and so on. I define such entities as Immutable Records, but I have a trouble chosing the right approach for the following: the set of data I display when listing products is different from viewing one particular Product. Which way would you propose to go: one universal Record(which looks bad to me) or creating different Records as ProductListItem & ProductView?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.