clean-code-javascript
clean-code-javascript copied to clipboard
Change wording and add examples for Liskov Substitution Principle
Hello! Love this repo - incredibly useful, and I've bookmarked it for future reference.
I'd like to suggest a change to the writeup on the Liskov Substitution Principle. The text right now indicates that instances of a parent and child class can be used interchangeably. This is incorrect - the parent can be replaced by the child, but not the other way around. I've updated the wording and added a small illustrative example.
Thanks for maintaining this!
Thanks for your expertise! You're right.
Can you update your commit to not have the code example at the bottom. I like to keep the code examples only in a Good or Bad block