Interface Segregation Principle (ISP): Narrow the Contract
A shared contract that grows to serve everyone ends up serving no one well. Learn how ISP keeps each interface honest about what its client actually needs.
Kind of writing
A shared contract that grows to serve everyone ends up serving no one well. Learn how ISP keeps each interface honest about what its client actually needs.
A hot path is code that runs on every request — small inefficiencies there compound into P99 spikes users actually feel. How to find hot paths with profilers and fix them in .NET.
Average response time hides the worst user experiences. P99 can run 100× slower than P50 on the same dataset. What P50, P95, and P99 mean, why they matter, and how to read them together.
When business logic knows which database it's talking to, the database owns the business logic. Learn how DIP breaks that grip by making policy depend on what it needs, not on how it's delivered.
A subtype that can't fully honor its parent's contract doesn't announce itself — it waits. Learn how LSP ensures the contract you depend on is the contract you actually get.
Code that has to be opened every time requirements change is code you will eventually break. Learn how OCP lets new behavior arrive as new files, not as edits to existing ones.