4 ms·
I think the concept of the article is great but the explanation could use some work. Given the code it does not seem clear to me why the test case of an explici
by memco 6y ago
I think the concept of the article is great but the explanation could use some work. Given the code it does not seem clear to me why the test case of an explicitly requested rectangle now returns functions from a square that was not initialised or requested in the setup. Maybe this is specific to the language the author is using?
- juanorozcov 6y agoThanks! I will try to make the explanations clearer, I'm still trying to improve my writing and this is very much appreciated, oh, and the code is Ruby. I forgot to add the source code for the article, I just pushed it to a git repo and added a link to it at the article's footer. Thanks again!
- TheTaytay 6y agoThanks for the article! In school, I believe I heard this summarized as something along the lines of: "a derived class should require no more and deliver no less than its base class". I have always liked that succinct phrasing of the principle.
- juanorozcov 6y ago"a derived class should require no more and deliver no less than its base class" Uh, very nice, I need to write that down, it's by far the most concise version of the principle I've heard! Thank you
- antman 6y agoI really thought the article ended somewhere in a middle. Really would like to see the 'end' code!
- vaer-k 6y agoI think this article is incomplete without showing an example of a solution implementation that satisfies the LSP