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.

2
  • I agree with your comment, check the repo - where I went the same route.. I just wanted to start out with a "bad" example and build on SOLID from there on. I ended up with something similar if you check/read the repo now. Commented Feb 13, 2017 at 18:13
  • 4
    "The hallmark of OOP is coupling data with behaviour". Yes but this is besides the point. The point is that Person does not have person behavior, it has presentation behavior. It would be alright if it had methods like Eat and Pee because that is what persons do. Persons do however not format representations of their data properties. THAT is the SRP violation. The resposibility is "be a person". Commented Feb 13, 2017 at 19:58