Search
Lessons (33)
- Node.js and Express
What Node.js is and how it serves thousands of connections on one thread, then Express step by …
- HCL, Resource Addresses, and Project Layout
Read Terraform blocks, expressions, references, and version constraints, and organize a root module clearly. Read a block Terraform …
- Backend Languages: Node.js, Go, Python & Rust
… Express js import express from "express"; const app = express(); app.get("/users/:id", async (req, res) = { const user …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
Six more behavioral patterns, from Express-style middleware chains to undo snapshots, each with a picture and a …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… S":"BOOK 42"}}' \ --update-expression 'SET stock = stock - :one' \ --condition-expression 'stock = :one' \ --expression-attribute-values '{":one":{"N …
- NestJS Core Concepts
… It still uses Express (or Fastify) underneath, but decides where things go : every feature is a module , HTTP …
- Count, for_each, Functions, and Stable Identities
… Verify expressions with terraform console before embedding complex transformations. Dynamic blocks A dynamic block generates repeated nested blocks …
- Choosing a Programming Language
… HTTP Batteries-included Covered in --- --- --- --- TypeScript Express, Fastify NestJS Node.js & Express , NestJS Python FastAPI, Flask Django Python …
- MVC, MVP & MVVM
… How each works, how data flows, and where you meet them in Rails, Express, Angular, Vue and React …
- Clean Architecture
… repositories Use cases UserController , PostgresUserRepo 🟣 Frameworks & drivers Express, React, Postgres, Stripe Adapters app.listen() , pg.Pool Follow …
- Behavioral Patterns I: Observer, Strategy, Command, State
… same signature, different algorithm const shippingStrategies = { standard: (order) = 5, express: (order) = 15, free: (order) = 0, weight: (order) = order …
- Indexes, EXPLAIN & Query Plans
… most rows still match. - Wrapping an indexed column in a function without a matching expression index. - Forgetting the …
- Variables, Locals, Outputs, and Validation
… A local avoids repeating the naming expression. An output publishes a result. Supply values Create dev.tfvars : hcl …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… Standard and synchronous/asynchronous Express have distinct semantics; see [workflow types](https://docs.aws.amazon.com/step-functions …
- Testing, Preconditions, and Policy Checks
… https://developer.hashicorp.com/terraform/language/tests), [custom conditions](https://developer.hashicorp.com/terraform/language/expressions/custom-conditions).
- Hexagonal Architecture (Ports & Adapters)
… that connects a real technology to a port Express controller, Postgres repository Driving (primary) side Actors that call …
- Resources, QoS and Scheduling Control
… ssd Node affinity (expressive) yaml affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: topology.kubernetes.io/zone operator: In values …
- What Are Design Patterns?
… addEventListener("click", fn) Observer app.use(middleware) in Express Chain of Responsibility array.sort((a, b) = a - b …
- Clean Architecture in Depth
… Do they say "Express app" or "online shop" ? text ❌ Screams the framework ✅ Screams the business src/ src/ ├── controllers …
- O — Open/Closed Principle
… StudentDiscount : 🆕 added later OCP is everywhere you look Tool Extension point --- --- Express / Koa Middleware: app.use(myMiddleware) VS …
- Extending Kubernetes: CRDs, Operators and Admission
… resourceRules: - apiGroups: ["apps"] apiVersions: ["v1"] operations: ["CREATE", "UPDATE"] resources: ["deployments"] validations: - expression: object.spec.template.spec.containers.all …
- Comments & Formatting
… Only comment what code cannot express. Comments that hurt 1. Redundant comments js // ❌ The comment repeats the code …
- Stacks & Queues
… Function call stack"] S -- P["🧮 Parsing brackets & expressions"] S -- D["🌲 Depth-first search"] The call stack Every …
- Clean Error Handling
… not found"); res.json(user); }); // one central handler (Express 5 forwards async errors automatically) app.use((error, req …
- How a Web Request Works
… Repository] -- DB[(Database)] js // A minimal Node.js (Express) endpoint app.get("/products/:id", async (req, res) = { const …
- React Fundamentals
… name }) . JSX rules: return one root element (or a fragment < …</ ), use className instead of class , write {expression} for …
- Authentication, Authorization & API Security
… vars, never in git - [ ] Security headers ( helmet in Express) - [ ] Dependencies scanned ( npm audit , Dependabot) - [ ] Log security events, but …
- Observability: Logs, Metrics & Traces
… instrumentations-node"; new NodeSDK({ instrumentations: [getNodeAutoInstrumentations()] }).start(); // HTTP, Express, pg, redis, fetch… are now traced automatically SLIs, SLOs …
- JavaScript Language Fundamentals
… const sub = function (a, b) { return a - b; }; // expression const mul = (a, b) = a b; // arrow: short, no …
- VPC Networking Without the Confusion
… This expresses a service relationship instead of relying on changeable instance IP addresses. Security groups are stateful : response …
- Structural Patterns: How to Connect Objects
… R[withRetry] -- F[fetchUser] You've used it: Express middleware, React Higher-Order Components ( withRouter(Component) ), TypeScript/NestJS …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… string { return ${this.cdnUrl}/${key} ; } async upload(file: Express.Multer.File, folder = 'tutorials') { const key = this.buildKey(folder …
- Domain-Driven Design: Tactical Patterns
… model inside one bounded context, so the code expresses business rules clearly and can't be put into …