Search
Lessons (40)
- Classes and Objects
A class is a blueprint and an object is a thing built from it. Learn constructors, properties, methods …
- What Is Object-Oriented Programming?
OOP organizes code around objects, small units that bundle data with the behavior that uses it. See how …
- 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
… Use Object.freeze for a (shallow) read-only object. Equality and coercion js 0 == "0"; // true — loose equality …
- S3: Store Files Safely
… Uploading a new object under the same key replaces the current object; versioning can retain earlier versions. A …
- 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
… Writing good object-oriented code means also knowing the traps. This lesson covers the mistakes that show up …
- IAM: Who Can Do What
… An S3 bucket ARN covers bucket operations, while an object ARN covers object operations. A permission on one …
- Object Relationships: Association, Aggregation and Composition
… dependency, association, aggregation and composition](/img/oop/object-relationships.svg) Quick overview Relationship Meaning Lifetime Everyday example UML …
- Domain-Driven Design: Tactical Patterns
… no, they're different people, so it's an entity. Value objects: small, immutable, self-validating ⭐ Value objects …
- State, Remote Backends, and Locking
… Explain why lock-object deletion can be allowed without allowing state-object deletion.
- Composition over Inheritance
Build objects from small, swappable parts instead of deep class trees. Learn the "has-a" test, why inheritance …
- Which Pattern Do I Need?
… In State the object changes itself . Factory vs Builder Factory creates in one call and decides the type …
- Extending Kubernetes: CRDs, Operators and Admission
Teach Kubernetes new resource types, automate them with controllers, and enforce policy before objects are saved. Kubernetes is …
- Polymorphism
… Learn how polymorphism lets you treat different objects the same way, replace long if/else chains, and add …
- Storage, Search and Location Queries
Use the right tool for each job (object storage for files, a search index for text, a geo …
- 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 …
- Design a File Storage Service
… The API returns short-lived signed upload URLs, each limited to one object name, one size and one …
- Encapsulation
Keep an object's data private and let it change only through its own methods. Learn access modifiers …
- Imports, Moved Blocks, and Safe Refactoring
Adopt existing infrastructure, rename resources without recreating them, and remove ownership deliberately. Import brings an existing object under …
- 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 …
- Node.js and Express
… It shows you: - Which objects use the most memory. - Which objects keep growing in number. - Which objects are …
- Code Smells & Refactoring
… which currency? cents or dollars? rounding? function addTax(price) { return price 1.2; } // ✅ A small object that knows …
- AWS Interview Questions: Clear Answers
… An app can be allowed to read a known object without being allowed to list every object name …
- CloudFront: Faster Websites and Safer File Delivery
… On a cache miss, it fetches the object from the origin, returns it, and can cache it for …
- TypeScript Essentials
… User) { return Hi ${user.name} ; } interface type --- --- --- Object shapes ✅ ✅ Unions, tuples, primitives ❌ ✅ Extending extends & (intersection) Declaration merging ✅ ❌ 💡 Rule …
- Onion Architecture & Clean vs Hexagonal vs Onion
… The application is built around an independent object model . 2. Inner layers define interfaces; outer layers implement them …
- Python Web APIs: FastAPI and Django
… return Task.objects.filter(owner=self.request.user) users see only their tasks def perform create(self, serializer …
- Machine Learning Fundamentals
… In machine learning, we provide examples and an objective, and an algorithm fits a model that captures useful …
- Storage Engines & Database Operations
… Know your recovery point objective (how much data loss is acceptable) and recovery time objective (how long restoration …
- Resilience, Disaster Recovery and Multi-Region Design
… recovery point objective) How much data can we afford to lose? (time) RTO (recovery time objective) How long …
- L — Liskov Substitution Principle
… LSP (Barbara Liskov, 1987): Objects of a subtype must be replaceable for objects of the parent type without …
- Variables, Locals, Outputs, and Validation
… An object captures a record with known attributes; a map represents similarly shaped entries identified by keys. Sensitive …
- Hash Maps & Sets
… Plain objects have inherited keys like "constructor" that can surprise you. Pattern 1: "Have I seen it before …
- Prompting and Structured Outputs
… Return only an object matching the provided schema. Input: <support message Keep instructions separate from data where the …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… They all talk to the control tower , which coordinates everyone. Problem: many objects talking directly to each other …
- Clean Architecture
… only "shapes" (interfaces), never concrete classes constructor({ userRepository, passwordHasher, emailSender }) { Object.assign(this, { userRepository, passwordHasher, emailSender }); } async execute …
- 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 …