Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • since the match contains business logic - What business rules do you currently have implemented on your Match object? Commented Dec 15, 2017 at 16:02
  • @EmersonCardoso I have not implemented anything at all, but if I had, I'd - for example - check that no actions that are assigned to a player that is not in the match are added, check that no two player with the same roster number are added, etc. Commented Dec 15, 2017 at 16:11
  • @EmersonCardoso Thinking about it this could be counted as a TDA violation on its own right ;) Commented Dec 15, 2017 at 16:11
  • Can you give more examples about what analysis you'll implement? Also: just asking the match object for its contacts to operate on them would be a violation of TDA - the analysis will only be a violation of TDA if you retrieve data, and use them in order to change the state of the match object. Commented Dec 15, 2017 at 17:16
  • @EmersonCardoso - this kind of makes sense. This might be the part that I got wrong ;) Commented Dec 18, 2017 at 6:11