Search
Lessons (40)
- Reusable Modules and Clear Interfaces
Build and call a small module, expose outputs, and define sensible module ownership and versioning. A module is …
- Vertical Slice Architecture & the Modular Monolith
Organise code by feature instead of by technical layer, and split a monolith into well-bounded modules that …
- NestJS Core Concepts
… new Date().toISOString(), }); } } Dynamic modules and lifecycle hooks ts @Module({}) export class MailModule { static forRoot(options: { apiKey: string …
- Production Capstone and Interview Practice
Combine modules, isolated environments, remote state, tests, and reviewed delivery in a production-style storage project. Build a …
- Environments, Workspaces, and Multiple Accounts
… module "secondary storage" { source = "../../modules/private-storage" providers = { aws = aws.secondary } Add the module's required inputs here …
- Choosing an Architecture
… For example: a modular monolith (1), with Hexagonal modules (2), cut along DDD bounded contexts (3), talking via …
- HCL, Resource Addresses, and Project Layout
Read Terraform blocks, expressions, references, and version constraints, and organize a root module clearly. Read a block Terraform …
- Monolith vs Microservices
… one deployable"] direction LR U[Users module] --- O[Orders module] --- P[Payments module] --- I[Inventory module] DB1[(One …
- Architecture Patterns at Scale
… Start with clear sections inside one app Split the code into modules : catalog, checkout, fulfillment. Each module: - has …
- Imports, Moved Blocks, and Safe Refactoring
… Moving a root resource into a module follows the same principle: hcl moved { from = aws s3 bucket.assets …
- What Is Software Architecture?
… a modular monolith , split along DDD bounded contexts , where each module uses Hexagonal/Clean architecture inside, and modules …
- JavaScript Language Fundamentals
… values vs references, equality and coercion, let/const scope, functions, objects and prototypes, classes, modules, array methods and …
- S — Single Responsibility Principle
A class or module should have only one reason to change. Learn to find the hidden responsibilities in …
- Testing, Preconditions, and Policy Checks
… default = 1 } resource "local file" "deployment" { filename = "${path.module}/deployment.json" content = jsonencode({ replicas = var.replicas }) lifecycle { precondition …
- What Are Design Patterns?
… JavaScript's first-class functions , closures and modules make several of them much simpler: - Strategy → just pass a …
- Event-Driven Architecture
… Inside a modular monolith , modules can communicate with in-process domain events , keeping modules decoupled without any broker …
- D — Dependency Inversion Principle
… Details should depend on abstractions. - High-level module: your business logic ( OrderService ). This is what makes money. - Low …
- Creational Patterns: How to Make Objects
… a database pool, a config object, a logger. js // db.js — ES modules are evaluated ONCE and cached …
- Terraform: Start Here
… 2. Intermediate, lessons 6–10: dependencies, stable resource identities, modules, shared state, and environments. 3. Advanced, lessons 11 …
- SOLID at a Glance
Five design principles that keep object-oriented and modular code easy to extend, test and change. One picture …
- Variables, Locals, Outputs, and Validation
… var.environment}" } resource "local file" "welcome" { filename = "${path.module}/${local.name}.txt" content = "Project: ${var.project}\nEnvironment: ${var …
- C4 Architecture Diagrams: Context, Container, Component and Code
… Component Find the responsible module and its collaborators How is one complex module implemented? 4. Code Change the …
- Count, for_each, Functions, and Stable Identities
… 0 filename = "${path.module}/README-generated.txt" content = "Generated by Terraform.\n" } When present, the address is local …
- Your First Terraform Project
… Cleanup applies only to resources in this root module's current state. What belongs in Git? Commit .tf …
- Domain-Driven Design: Strategic Design
… Ordering, Billing, Fulfilment). Strategic design → architecture mermaid flowchart LR ES["🗒️ Event storming"] -- BC["Bounded contexts"] -- MOD["Modules …
- Microkernel (Plugin) Architecture
… a minimal core system plus independent plug-in modules that extend it. ![Microkernel: a small core with plug …
- Go Fundamentals
… The go.mod file at the top records the module's name (usually its repository path), the Go …
- Docker in Production on a Single Server
… Build ---- FROM node:22-alpine AS build WORKDIR /app COPY --from=deps /app/node modules ./node modules COPY …
- How Browsers Render a Page
… Independent scripts (analytics) type="module" In parallel Deferred by default ✅ Modern ES modules html <script src="/app.js …
- TypeScript Essentials
… true, // arr[i] might be undefined "target": "ES2022", "module": "ESNext", "moduleResolution": "bundler" } } Always use "strict": true in new …
- Choosing a Programming Language
… Tokio), no data races Startup / deploy node + node modules Interpreter + virtualenv One static binary One static binary Learning …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… fullKey }; } } ts // src/storage/storage.module.ts import { Module } from '@nestjs/common'; import { StorageController } from './storage.controller'; import …
- Serverless Architecture
… your business logic portable. Put it in plain modules (Hexagonal style) and keep the Lambda handler as a …
- TypeScript in Practice
… Node.js service json { "compilerOptions": { "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", "strict": true, "noUncheckedIndexedAccess": true, "exactOptionalPropertyTypes": true, "noImplicitOverride …
- Dependencies, Data Sources, and Resource Lifecycle
… Broad module-level dependencies can cause more unknown values and more conservative plans. Read versus own hcl data …
- Secrets, Ephemeral Values, and Least Privilege
… Give the assumed role only the API operations and resources the root module needs. State permissions are separate …
- DRY: Don't Repeat Yourself
… Config values copied between files One .env / config module The same SQL in many places A repository function …
- KISS: Keep It Simple, Stupid
… with the simplest architecture that works, like a modular monolith and one database. Add microservices, queues and caches …
- Meaningful Names
… Function scope"] -- clear name m1["total, retries"] L["Module / global scope"] -- very descriptive l1["MAX UPLOAD SIZE MB …
- Classes and Objects
… with only static methods. That's just a module of functions; export functions instead. Key takeaways - A class …