Search
Lessons (40)
- TypeScript Essentials
TypeScript is JavaScript with types that catch bugs before your code runs. Learn the core types, interfaces, unions …
- TypeScript in Practice
… the return type teaches TypeScript function isUser(v: unknown): v is User { return typeof v === "object" && v !== null …
- Advanced TypeScript for Frontend
Model real UI states safely with generics, discriminated unions, conditional types and runtime schema validation at API boundaries …
- Choosing a Programming Language
… How to compare JavaScript/TypeScript, Python, Go and Rust by runtime, typing, concurrency and team fit, plus the …
- Polymorphism
… number }) { if (employee.type === "fullTime") { return employee.salary / 12; } else if (employee.type === "partTime") { return employee.hours! employee …
- SQL Language, Identifiers & Data Types
Interview answers for DDL/DML/DCL, generated IDs, UNION, static/dynamic SQL and CHAR/VARCHAR. Covers PDF questions …
- Go Fundamentals
… The types go in square brackets and are called type parameters . go // T and U are type parameters …
- Extending Kubernetes: CRDs, Operators and Admission
Teach Kubernetes new resource types, automate them with controllers, and enforce policy before objects are saved. Kubernetes is …
- Rust: Types, Errors and Concurrency
… a copy of the function per type, zero runtime cost fn total area<T: Shape (shapes: &[T]) - f64 …
- Event-Driven Architecture
… string } (type: E["type"], handler: Handler<E ) { this.handlers.set(type, [...(this.handlers.get(type) ?? []), handler]); } async publish …
- Variables, Locals, Outputs, and Validation
Build a configurable local lab with typed inputs, useful outputs, and clear validation errors. Replace hard-coded values …
- Frontend Testing Strategy
… most value comes from integration tests](/img/frontend/testing-trophy.svg) Layer Tests Tools Speed Confidence --- --- --- --- --- Static Types …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… this. cursor } = memento); } get content() { return this. content; } } const editor = new Editor(); const history = []; editor.type("Hello"); history …
- DRY: Don't Repeat Yourself
… z.number().int().min(18), }); export type User = z.infer<typeof userSchema ; ⚠️ The trap: wrong abstraction Two pieces …
- Python Fundamentals
… virtual environments, types and mutability, lists/tuples/dicts/sets, comprehensions, functions with args and kwargs, classes and dataclasses …
- REST vs GraphQL vs gRPC
… Int = 10): [Post!]! } type Query { user(id: ID!): User } type Mutation { createPost(title: String!, body: String!): Post! } js …
- Creational Patterns: How to Make Objects
… one place that knows how to create notifiers function createNotifier(type) { const Notifier = notifiers[type]; if (!Notifier) throw …
- Prompting and Structured Outputs
… Then parse and validate the response before using it. ts type Ticket = { category: "billing" "technical" "other"; urgency: "low …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… true }, "NeedsReview": { "Type": "Fail", "Error": "ReservationRequiresReview" } } } Workflow type Best for --- --- Standard Long-running (up to 1 year), exactly …
- JavaScript Language Fundamentals
… err }) . Quick check <details <summary What does <code typeof null</code return, and why?</summary "object" . It's …
- L — Liskov Substitution Principle
If code works with a parent type, it must also work with any child type, with no surprises …
- Classes and Objects
… cannot read 'name' of undefined button.addEventListener("click", () = rex.bark()); // ✅ arrow keeps this A shorter constructor (TypeScript) TypeScript …
- CQRS & Event Sourcing
… 42 }, { type: "MoneyDeposited", amount: 100 }, { type: "MoneyWithdrawn", amount: 30 }, { type: "MoneyDeposited", amount: 50 }, ]; // Current state = a left fold …
- Interfaces vs Abstract Classes
… Learn the difference, how to use each in TypeScript, and how to choose. The big idea - An interface …
- Collaborative Document Editing & Real-Time Sync
… 9034 } { "type": "remote op", "rev": 9035, "author": "c19", "ops": [ ... ] } { "type": "presence", "user": "u19", "cursor": { ... } } // throttled to 50 ms …
- Topics, Partitions & Offsets
… JSON.stringify({ type: "OrderPlaced" }) }, { key: "order-42", value: JSON.stringify({ type: "OrderPaid" }) }, // same partition, after Placed { key: "order …
- EC2, Storage and Auto Scaling
… For a simple container app, ECS Fargate often needs less maintenance. Important EC2 words Word Meaning --- --- Instance type …
- HCL, Resource Addresses, and Project Layout
… A block contains a type, optional labels, and a body. An argument assigns an expression to a name …
- Reusable Modules and Clear Interfaces
… In variables.tf : hcl variable "name" { type = string } variable "port" { type = number validation { condition = var.port = 1 && var …
- OOP Mistakes and Interview Questions
… In TypeScript it can be private , which stops outside code from calling new . That's used in the …
- React Hooks in Practice
… throw new Error( Unknown action ${action.type} ); } } const [cart, dispatch] = useReducer(cartReducer, { items: [] }); dispatch({ type: "add", item }); useEffect …
- Production Capstone and Interview Practice
… Define typed variables and use the environment and owner in tags. hcl modules/private-storage/variables.tf variable …
- AWS Messaging: Queues, Topics and Events
… rules send events to services by type/content Kinesis Ordered, high-volume stream processing SQS basics that prevent …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… file.type }), }); const { uploadUrl, key, url } = await res.json(); // 2. Send the file straight to S3. Content-Type …
- Month 5: AI Agents and Tool Orchestration (Weeks 17-20)
… Label each failure type. 5. Friday: Improve tool descriptions and error messages. Re-run the ten tasks and …
- Cluster Networking, DNS and NetworkPolicies
… A pod that fails its readiness probe is removed from the slice. Service types recap Type Reachable from …
- KISS: Keep It Simple, Stupid
… for ONE email type class NotificationStrategyFactory { create(type) { return new (this.registry.get(type))(); } } class AbstractNotificationStrategy { send() { throw …
- Python Web APIs: FastAPI and Django
… It's small, fast, async-friendly, and turns your type hints into validation and interactive API docs automatically …
- Atomic Design & Component Libraries
… 0.5rem; } tsx type ButtonProps = { children: React.ReactNode; tone?: "primary" "danger"; } & React.ComponentPropsWithoutRef<"button" ; export function Button({ children …
- React vs Vue vs Angular
… like Vue. Side-by-side React Vue Angular --- --- --- --- Type UI library Progressive framework Full framework Maintained by Meta …