Question

2
Replies
27
Views
William Baeyens (baeyw)
PEGA
Sr. System Architect - Pega Consulting
Pegasystems Inc.
FR
baeyw Member since 2019 8 posts
PEGA
Posted: April 26, 2021
Last activity: May 3, 2021
Posted: 26 Apr 2021 3:47 EDT
Last activity: 3 May 2021 12:45 EDT
Solved

LSA Course : Law of Demeter

Hello, 

I'm wondering about the law of Demeter and the example in the LSA course : 

https://academy.pega.com/topic/data-model-best-practices/v1/in/11776/11826

Is this law only valid if the relationship class does not need any properties? In the linked example, what if we need to keep track of Contestant Scores for each contest, then does the Contestant-Contest class make sense? Or is there another better design? 

Kind regards. 

Pega Platform 8.5.3 Senior System Architect Pega Academy