Search
Lessons (18)
- D — Dependency Inversion Principle
… Dependency Injection DIP is the principle; Dependency Injection (DI) is the most common technique to achieve it: pass …
- O — Open/Closed Principle
Software should be open for extension but closed for modification. Add new features by plugging in new code …
- S — Single Responsibility Principle
A class or module should have only one reason to change. Learn to find the hidden responsibilities in …
- I — Interface Segregation Principle
Don't force code to depend on methods it doesn't use. Split fat interfaces into small, focused …
- L — Liskov Substitution Principle
… Prefer composition or separate types. - LSP is what makes polymorphism (and the Open/Closed Principle ) safe.
- SOLID at a Glance
Five design principles that keep object-oriented and modular code easy to extend, test and change. One picture …
- OOP Mistakes and Interview Questions
… What is the Liskov Substitution Principle?</strong </summary A subclass must be usable anywhere its parent is expected …
- Imports, Moved Blocks, and Safe Refactoring
… Moving a root resource into a module follows the same principle: hcl moved { from = aws s3 bucket.assets …
- Inheritance
… Bird to fly } } This breaks the Liskov Substitution Principle : a child must be usable anywhere the parent is …
- Code Smells & Refactoring
… through every switch . (This is the Open/Closed Principle , covered in the SOLID lessons.) Shotgun surgery vs Divergent …
- Production Capstone and Interview Practice
… Use the AWS bucket resources from lesson 5 and the module principles from lesson 8. This project integrates …
- Interfaces vs Abstract Classes
… Split it into small, focused ones ( Interface Segregation Principle ). - An abstract class with no shared code. If every …
- Polymorphism
… Employee[]) = staff.reduce((sum, e) = sum + e.monthlyPay(), 0); This is the Open/Closed Principle in action: open …
- DevOps and the Path from Code to Server
… tuning, security, monitoring, upgrades DevOps principles worth remembering - Automate anything you do twice. A script never forgets a …
- Microkernel (Plugin) Architecture
… final HTML The Open/Closed Principle at architecture scale: the core is closed for modification, open for extension …
- Serverless Architecture
… with near-zero cold starts. Designing for serverless Principle Why --- --- Stateless functions Any instance can handle any request …
- Onion Architecture & Clean vs Hexagonal vs Onion
… Palermo's own summary of the principles: 1. The application is built around an independent object model . 2 …
- Users, Permissions & sudo
… myapp.service, /usr/bin/systemctl status myapp.service Principle of least privilege Give every user and every program …