Search
Lessons (14)
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… JavaScript has the Iterator pattern built in : anything with [Symbol.iterator] works with for…of , spread and destructuring …
- What Are Design Patterns?
… b) = a - b) Strategy for (const x of iterable) Iterator new Proxy(obj, handler) Proxy A React Higher …
- Rust: Types, Errors and Concurrency
… u64 = orders .iter() .filter( o matches!(o.status, Status::Paid { .. })) .flat map( o o.items.iter()) .map( item …
- Python Fundamentals
… print(i, item) for a, b in zip(["x", "y"], [1, 2]): iterate two lists together print(a …
- Arrays & Strings
… arr.length - 1 . - Mutating while iterating: removing items inside forEach skips elements. Iterate backwards or use filter . - sort …
- How Browsers Render a Page
… forces layout on every iteration for (const box of boxes) { box.style.width = container.offsetWidth / 2 + "px"; } // ✅ Read …
- JavaScript Essentials: Event Loop, Closures & this
… each iteration gets its own i for (let i = 0; i < 3; i++) setTimeout(() = console.log(i), 100 …
- Choosing a Programming Language
… Rust fn sum evens(xs: &[i64]) - i64 { xs.iter().filter( x x % 2 == 0).sum() } Notice the personalities …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… most-once Features worth knowing: Map for parallel iteration over a list, Wait for timers, callback tokens to …
- Choosing an Architecture
… top to bottom Feature-heavy apps, CQRS, fast iteration Duplication without a shared domain System shape Style Core …
- Async JavaScript: Promises, async/await and Node's Event Loop
… data }); worker.once("message", resolve); worker.once("error", reject); }); } Async iteration and streams js import { createReadStream } from "node …
- Rust: Ownership, Borrowing and Lifetimes
… for Vec, arrays, and slices of them xs.iter().sum::<f64 () / xs.len() as f64 } 💡 In function parameters …
- Go Concurrency: Goroutines, Channels and Context
… each iteration gets its own url fmt.Println(url, status) }() } wg.Wait() // all three fetches run at the …
- Practical Project: Deploy a Real CRM App on EKS
… The fix belongs in code: - Reuse one Prisma client per process. - Prevent overlapping relay iterations (wait for one …