News for hackers. Stuff that matters.
Re:Is Clean Code Necessary? by Ntrails on Tuesday August 09, 2016 @06:38AM (#12253659)
Surely it follows logically anyway?

Assuming sub/super are referring to inheritance (sorry, I'm a bad), a sub contains all of a super and more. Passing through an object with more shouldn't break anything. But a super might lack things the sub has, thereby breaking assumptions about what will be present.

I feel like the principle would be broken by the objects/inheritance being badly used rather than the calling code though?

Re:Is Clean Code Necessary? by talideon on Tuesday August 09, 2016 @07:36AM (#12253842)
LSP doesn't specifically deal with inheritance; it's equally applicable to interface implementation.