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.

Required fields*

13
  • are you aware of liskov-substitution principle? I guess not, otherwise you'd see why "partial" solution is not acceptable Commented Apr 19, 2016 at 7:59
  • 2
    Possible duplicate of What can go wrong if the Liskov substitution principle is violated? Commented Apr 19, 2016 at 8:03
  • 2
    @gnat, what does this have to do with Liskov Substitution Principle? I don't see any mention of inheritance in the question at all! Commented Apr 19, 2016 at 8:11
  • 1
    @gnat That's not my question. I'm not asking about the ramifications of violating the Liskov Substitution Principle, I'm not worried about the Liskov Substitution Principle in the slightest. I'm asking, if you have a complicated solution with easy documentation, and an easy solution with complicated documentation, which do you choose. Does my new example not make sense? Commented Apr 19, 2016 at 8:12
  • 1
    @gnat, ah, yes, that would be. But it is just a special case of the actual question (and it was obvious from the beginning that it is). Commented Apr 19, 2016 at 8:27