Search
Lessons (40)
- I — Interface Segregation Principle
… fat interfaces cause LSP violations. The fix: small, role-based interfaces ts // ✅ One interface per capability interface Printer …
- Interfaces vs Abstract Classes
An interface is a contract with no code; an abstract class is a half-built parent with shared …
- Onion Architecture & Clean vs Hexagonal vs Onion
… interfaces live in the inside Just like the other two styles, the repository interface is declared in an …
- Reusable Modules and Clear Interfaces
… versioning. A module is a directory with an interface A root module is the directory where you run …
- Clean Architecture
… one action each Entities + interfaces RegisterUser , PlaceOrder 🔵 Interface adapters Controllers, presenters, repositories Use cases UserController , PostgresUserRepo 🟣 Frameworks …
- Abstraction
… abstraction as a contract An interface describes what something can do, with no code for how . ts interface …
- VPC Endpoints, Transit Gateway and Hybrid Networking
… With an interface endpoint and private DNS configured, that hostname resolves to endpoint network-interface addresses in your …
- Clean Architecture in Depth
… one class per user action The application's behaviour changes Entities + port interfaces 🔵 Interface adapters Controllers, presenters, gateways …
- SOLID at a Glance
… TypeScript adds real interfaces. - Functions are first-class, so you can often pass a function where Java would …
- Polymorphism
… Anything with the right methods fits: ts interface Logger { log(message: string): void; } const consoleLogger: Logger = { log: (m …
- Go Fundamentals
… It is not a kind of Timestamps . Interfaces: satisfied automatically ⭐ An interface is a list of method signatures …
- Which Pattern Do I Need?
… Proxy controls access to the same behaviour. Adapter vs Facade Adapter makes one interface fit another. Facade simplifies …
- D — Dependency Inversion Principle
… details point UP to abstractions"] OS2[OrderService] -- R{{OrderRepository<br/ interface}} OS2 -- M{{Mailer<br/ interface}} MySQL[MySQLOrderRepository …
- Composition over Inheritance
… pick a formatter and a destination interface Formatter { format(rows: object[]): Buffer; } interface Destination { deliver(file: Buffer, name …
- OOP Mistakes and Interview Questions
… Interface vs abstract class?</strong </summary An interface is a contract only, with no code or state, and …
- Hexagonal Architecture (Ports & Adapters)
… Promise<void ; } export interface LoanRepository { save(loan: Loan): Promise<void ; countActiveFor(memberId: string): Promise<number ; } export interface Notifier …
- C4 Architecture Diagrams: Context, Container, Component and Code
… It can show classes, interfaces, functions, packages or aggregates, depending on the language and team conventions. Because code …
- TypeScript Essentials
… Learn the core types, interfaces, unions, generics and utility types with practical examples. The big idea Imagine electrical …
- TypeScript in Practice
… If it has the right properties, it fits. ts interface Point { x: number; y: number } class Pixel { constructor …
- Monolith vs Microservices
… each module has its own folder, public interface and (ideally) its own database schema. Modules talk only through …
- Structural Patterns: How to Connect Objects
… Adapter Make incompatible interfaces work together 🔌 travel plug Decorator Wrap to add behaviour, same interface ☕ coffee toppings Facade …
- O — Open/Closed Principle
… body<br/ (never changes)"] --- M{{Lens mount<br/ = interface}} M --- L1[Wide lens] M --- L2[Zoom lens] M …
- MVC, MVP & MVVM
… The Presenter holds all the presentation logic and talks to the View through an interface, which makes it …
- Microkernel (Plugin) Architecture
… the ONLY thing plug-ins import from the core export interface MarkdownPlugin { name: string; version: string; / Transform raw …
- Vertical Slice Architecture & the Modular Monolith
… Neighbours can't walk into each other's kitchens; they knock (a public interface). A modular monolith is …
- Views, Triggers & Stored Procedures
… It can simplify joins, expose a secure subset, and give clients a stable interface. A materialized view stores …
- Object Relationships: Association, Aggregation and Composition
… Also common in UML class diagrams: Symbol Meaning --- --- Child --\ Parent (hollow triangle) Inheritance ("is a") Class ..\ Interface (dashed …
- Internals, Upgrades, Resilience and Interview Questions
… volumes instead, with tools such as Velero . Extension interfaces Interface Plugs in Examples --- --- --- CRI Container runtime containerd, CRI …
- Prompting and Structured Outputs
… A prompt is part of an application's interface to a model. A strong prompt makes the task …
- Go Web Services with Gin
… go business rules (no Gin imports!) │ ├── repository.go interface + Postgres implementation │ └── handler.go Gin handlers: HTTP in, HTTP …
- Domain-Driven Design: Tactical Patterns
… a port), implemented in infrastructure (an adapter) export interface OrderRepository { get(id: OrderId): Promise<Order ; // loads the WHOLE …
- What Is Artificial Intelligence? A Developer's Guide
… A chatbot is an interface, and can use rules, retrieval, a language model, or a combination. Training versus …
- What Is Object-Oriented Programming?
… structs + methods + interfaces Rust Structs + traits, no inheritance This course uses TypeScript , but the ideas carry over to …
- Encapsulation
… 2. Expose a small set of safe methods (the public interface ). 3. Let those methods enforce the rules …
- Code Smells & Refactoring
… map((shape) = shape.area()); mermaid classDiagram class Shape { <<interface area() } Shape < .. Circle Shape < .. Square Shape < .. Triangle Adding a …
- Developer Learning Plan and Document-Assistant Capstone
… 6. Add a web interface: show sources, pending state, a failure message, and a way to report incorrect …
- Creational Patterns: How to Make Objects
… send("Your order shipped!"); mermaid classDiagram class Notifier { <<interface +send(msg) } Notifier < .. EmailNotifier Notifier < .. SmsNotifier Notifier < .. PushNotifier createNotifier …
- Atomic Design & Component Libraries
Build consistent, reusable interfaces by composing small UI primitives into components, layouts and real pages—without forcing every …
- Cost Optimization and the Well-Architected Framework
… add S3 and DynamoDB gateway endpoints; use interface endpoints for heavy services; keep traffic within an AZ. 3 …
- Run Containers on AWS with ECR and ECS
… architecture, required configuration Health Target stays unhealthy Listening interface, port mapping, health path Runtime API S3 request denied …