Search
Lessons (40)
- Classes and Objects
… objects, not copies. Try it yourself Write a Counter class with increment() , decrement() , reset() and a value getter …
- Creational Patterns: How to Make Objects
… every object links to a prototype ( Object.create(proto) ). That's this pattern built into the language. Use …
- JavaScript Language Fundamentals
… values vs references, equality and coercion, let/const scope, functions, objects and prototypes, classes, modules, array methods and …
- S3: Store Files Safely
… Do not delete valuable data until you understand the rule and recovery policy. Object storage through book covers …
- Structural Patterns: How to Connect Objects
… inventory, payment, shipping, email… class CheckoutFacade { constructor({ inventory, payments, shipping, mailer }) { Object.assign(this, { inventory, payments, shipping, mailer …
- OOP Mistakes and Interview Questions
… number everywhere, with validation copied around Small value objects: Email , Money Refused bequest A subclass overrides parent methods …
- Domain-Driven Design: Tactical Patterns
… Lisbon<br/ (still the same customer)"] end subgraph Value["💶 Value object: only values matter"] V1["€10.00"] --- V2 …
- Polymorphism
… actual object decides which speak() runs. Compile-time polymorphism (generics) ts class Box<T { constructor(private value: T …
- What Are Design Patterns?
… create objects? Factory Method, Abstract Factory, Builder, Prototype, Singleton 🧱 Structural How do I connect objects into bigger …
- Count, for_each, Functions, and Stable Identities
… variable "services" { type = map(object({ port = number })) default = { api = { port = 8080 } web = { port = 3000 } } } resource "local file" "service …
- Encapsulation
Keep an object's data private and let it change only through its own methods. Learn access modifiers …
- Behavioral Patterns I: Observer, Strategy, Command, State
… The channel doesn't know or care who you are. Problem: when one object changes, many others need …
- Code Smells & Refactoring
… zip} ${this.city} ; } } // order.customer.mailingLabel() Primitive obsession → Value Object js // ❌ Money as a plain number: which currency …
- TypeScript Essentials
… those API response Record<string, number Object with those key/value types Lookup tables ReturnType<typeof fn What …
- Onion Architecture & Clean vs Hexagonal vs Onion
… inside → out) Contains Example --- --- --- 🟡 Domain model Entities, value objects, business rules Order , Money , Email 🟠 Domain services …
- Python Web APIs: FastAPI and Django
… items = [t for t in tasks.values() if done is None or t.done == done] return items[:limit …
- Variables, Locals, Outputs, and Validation
Build a configurable local lab with typed inputs, useful outputs, and clear validation errors. Replace hard-coded values …
- Hash Maps & Sets
… unique values only const seen = new Set([1, 2, 2, 3]); seen.has(2); // true seen.size; // 3 …
- Prompting and Structured Outputs
… if (!value typeof value !== "object") throw new Error("Invalid response"); const ticket = value as Record<string, unknown ; if …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… object types without changing those types . js // Node types (rarely change) const num = (value) = ({ type: "num", value }); const …
- Clean Architecture
… your business rules (the valuable part) depend only on simple interfaces. The database, web framework and email provider …
- Providers and Your First AWS Resources
… If you uploaded objects, remove all object versions and delete markers before deleting a versioned bucket. This example …
- Interfaces vs Abstract Classes
… Record<string, unknown []) { const headers = Object.keys(rows[0]); const lines = rows.map((r) = headers.map((h) = String …
- Python Fundamentals
… Values, types and mutability Everything in Python is an object ; variables are name tags attached to objects. Type …
- AWS Data Pipelines in Plain Language
… objects, filters, and partitions Headers appear as records Header-skip property and file format Invalid numeric values Source …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… save object key DB[(Database)] VISITOR[Visitor] -- 4. GET /uploads/... CF[CloudFront] CF -- 5. OAC-signed request on …
- Clean Error Handling
… or a result object const age = Number(text); return Number.isInteger(age) ? { ok: true, value: age } : { ok: false …
- Abstraction
Show what an object does and hide how it does it. Learn how abstraction keeps code simple to …
- Production Capstone and Interview Practice
… Destroy only dev application resources when finished, after confirming the plan and clearing any object versions you uploaded …
- Heaps & Priority Queues
… No node objects needed: For the node at index i Formula --- --- Parent Math.floor((i - 1) / 2) Left …
- API Contracts, Gateways and Security
… So the object-level check ("may this person touch this object?") must live in the service that owns …
- Serverless Architecture
… s3.getObject(record.s3.bucket.name, record.s3.object.key); const thumbnail = await sharp(image).resize(200).webp …
- IAM Deep Dive: Policy Evaluation, STS and Cross-Account Access
… Give B's reader role object-read permission on the intended receipt prefix. 4. Check applicable organization controls …
- React Hooks in Practice
… 1 }; useEffect(() = { fetchData(options).then(setData); }, [options]); // new object every render! // ✅ Depend on primitive values useEffect(() = { fetchData({ page …
- Configuration, Secrets and Storage
Keep settings out of images, keep sensitive values protected, and keep important data when a pod is replaced …
- TypeScript in Practice
… v is User { return typeof v === "object" && v !== null && "id" in v && "email" in v; } // An assertion function …
- Run Containers on AWS with ECR and ECS
… Do not delete shared roles or networking. Practice: the app cannot read an S3 object, but the image …
- Neural Networks and Deep Learning
… a class probability, a continuous value, or another output shape. The network's parameters are the weights and …
- EC2, Storage and Auto Scaling
… Inspect the backing storage and deletion settings; keep valuable data in deliberately managed durable storage with a backup …
- HCL, Resource Addresses, and Project Layout
… Numeric value Boolean true True/false List ["web", "api"] Ordered collection Map/object { team = "platform" } Named values Null …