OGOnkesh Guptainonkeshgupta.hashnode.dev·3d ago · 7 min readSOLID Principles: 30 Interview Questions That Actually Test UnderstandingMost SOLID interview prep stops at definitions. "What is the Single Responsibility Principle?", "What does OCP stand for?" You can answer those from a glossary without ever having felt the pain the pr00
OGOnkesh Guptainonkeshgupta.hashnode.dev·Sep 17 · 8 min readDesign Patterns Simplified #3: Abstract Factory You're building the backend for a furniture store's website. Customers can order two things right now, a Chair and a Sofa. Both come in two styles: Modern and Victorian. You start simple. A ChairFacto00
OGOnkesh Guptainonkeshgupta.hashnode.dev·Sep 8 · 9 min readDesign Patterns Simplified #2: Factory MethodThe Problem You are building the payment flow for an app. First requirement: support Stripe. Simple. Somewhere in your checkout code, you write: StripeGateway* gateway = new StripeGateway(); gateway->00
OGOnkesh Guptainonkeshgupta.hashnode.dev·Sep 3 · 7 min readDesign Patterns Simplified: Creational, Structural & Behavioral - The Map Before The TerritoryYou just finished SOLID. Five principles, five "aha" moments, five checkmarks. Nice. Then you open a design patterns cheat sheet for the first time and see 23 of them. Singleton. Factory. Adapter. Dec00
OGOnkesh Guptainonkeshgupta.hashnode.dev·Sep 1 · 8 min readSOLID Principles Simplified #5: Dependency Inversion PrincipleThe Problem You're building a NotificationService for your app. First requirement is to send notifications over email. Simple enough. You write an EmailSender class and inside NotificationService, you02N