OGOnkesh Guptainonkeshgupta.hashnode.dev·13h ago · 6 min readSOLID Principles Simplified #3: Liskov Substitution Principle (LSP)Okay... That sounds much more complicated than it needs to be. What does "usable wherever" actually mean? Let's forget the definition for a moment and start with a problem. Imagine this... You are bui00
OGOnkesh Guptainonkeshgupta.hashnode.dev·3d ago · 5 min readSOLID Principles Simplified #2: Open/Closed Principle (OCP)Sounds contradictory, doesn't it? How can something be open and closed at the same time? When I first came across the Open/Closed principle, this was the part that confused me the most. So instead of 00
OGOnkesh Guptainonkeshgupta.hashnode.dev·Aug 14 · 5 min readSOLID Principles Simplified #1: Single Responsibility Principle (SRP)If you've ever opened a class and found hundreds or even thousands of lines of code doing completely different things, you've probably experienced the problem that the Single Responsibility Principle 00