Search
Lessons (19)
- Abstraction
… That's abstraction paying off. Abstract classes: a partly built blueprint An abstract class can't be created …
- Interfaces vs Abstract Classes
An interface is a contract with no code; an abstract class is a half-built parent with shared …
- D — Dependency Inversion Principle
High-level business logic should depend on abstractions, not on concrete details like databases or email providers. The …
- OOP Mistakes and Interview Questions
… Encapsulation is a lock; abstraction is a simple dashboard. </details <details <summary <strong 4. Interface vs abstract class …
- DRY: Don't Repeat Yourself
… Copy-paste culture. - AHA: "Avoid Hasty Abstractions". The balanced middle ground: prefer duplication until the right abstraction is …
- KISS: Keep It Simple, Stupid
… registry.get(type))(); } } class AbstractNotificationStrategy { send() { throw new Error("abstract"); } } class EmailNotificationStrategy extends AbstractNotificationStrategy { / … / } const strategy = new NotificationStrategyFactory …
- SOLID at a Glance
… injected abstractions this.repository = repository; this.notifier = notifier; } async publish(report, exporter) { const file = exporter.export(report); // L …
- DBMS Foundations, Keys & Normalization
Detailed interview answers for DBMS advantages, normalization, keys, abstraction and conceptual design. Covers PDF questions 1-5, 12 …
- Which Pattern Do I Need?
… when patterns go wrong Anti-pattern What it looks like Better --- --- --- Patternitis AbstractSingletonProxyFactoryBean for a one-off task …
- What Is Object-Oriented Programming?
… encapsulation, abstraction, inheritance and polymorphism](/img/oop/four-pillars.svg) Pillar In one sentence Real-life example --- --- --- Encapsulation …
- Creational Patterns: How to Make Objects
Factory Method, Abstract Factory, Builder, Prototype and Singleton, each with a real-life analogy, a picture and a …
- What Are Design Patterns?
… Creational How do I create objects? Factory Method, Abstract Factory, Builder, Prototype, Singleton 🧱 Structural How do I …
- Small Functions That Do One Thing
… users.insert)] W -- T[welcomeTemplate] One level of abstraction per function Don't mix "big picture" steps with …
- Inheritance
… notifications ts abstract class Notification { constructor(protected recipient: string, protected message: string) {} send() { if (!this.message.trim()) throw …
- Reusable Modules and Clear Interfaces
… This is a useful abstraction because it bundles a policy and lifecycle boundary. Avoid modules that simply rename …
- Scalable Frontend Architecture
… Create a shared abstraction only after repeated, stable use. 4. Enforce permissions on the server; a hidden client …
- What Is Software Architecture?
… Performance (caching) Freshness of data, complexity Flexibility (many abstraction layers) Readability, speed of development Consistency (one big transaction …
- JavaScript Language Fundamentals
… It supports the four OOP pillars: Pillar In JavaScript --- --- Encapsulation private fields, closures, modules Abstraction Expose a small …
- Structural Patterns: How to Connect Objects
… Circle(5, canvasRenderer).draw(); mermaid flowchart LR subgraph Abstraction Circle Square end subgraph Implementation SVG[SvgRenderer] Canvas[CanvasRenderer …