alishakausheen.hashnode.devFactory Method PatternStop Using new Everywhere At some point, every codebase reaches this stage if (type.equals("CAR")) { return new Car(); } else if (type.equals("BIKE")) { return new Bike(); } else if (type.equals("TRUCK")) { return new Truck(); } It works...Dec 19, 2025·3 min read
alishakausheen.hashnode.devSOLID Principles ExplainedThe Rules That Make Design Patterns Actually Work If Object-Oriented Design is the foundation,then SOLID principles are the load-bearing pillars. Design patterns assume your code follows SOLID.Without SOLID, patterns feel forced, confusing, and over-...Dec 15, 2025·3 min read
alishakausheen.hashnode.devObject-Oriented Design Basics We Must KnowDesign patterns don’t fix bad object-oriented design.They only work because of it. What Is Object-Oriented Design (OOD)? Object-Oriented Design is about: Modeling real-world concepts as objects Assigning clear responsibilities Defining how objects...Dec 14, 2025·3 min read
alishakausheen.hashnode.devWhat Are Design Patterns?Think of software like a building: Code = bricks Classes = rooms Design patterns = blueprints A design pattern is a reusable blueprint for solving a design-level problem. What design patterns are: Proven solutions High-level structures Langua...Dec 13, 2025·2 min read
alishakausheen.hashnode.devWhen Traffic Goes Crazy: Auto ScaleScalability sounds like a big, serious engineering word.But honestly… it’s just math we all learned in school, mixed with some tech magic. Think of your system like a student during exams: More chapters = more load More load = need better preparati...Dec 8, 2025·3 min read