Search
Lessons (40)
- Hash Maps & Sets
… any key type, keeps insertion order, has .size const ages = new Map(); ages.set("ana", 31).set("bo …
- React Hooks in Practice
… the function runs only on the first render const [settings, setSettings] = useState(() = JSON.parse(localStorage.getItem("settings") ?? "{}")); For …
- Encapsulation
… Learn access modifiers, getters and setters, and how encapsulation protects business rules. The big idea A medicine capsule …
- Machine Learning Fundamentals
… The validation set helps select models and settings. The test set estimates how the final choice performs on …
- L — Liskov Substitution Principle
… So inheritance seems natural: js class Rectangle { setWidth(w) { this.width = w; } setHeight(h) { this.height = h; } area …
- JavaScript Essentials: Event Loop, Closures & this
… run all microtasks, then one task The famous quiz js console.log("1"); setTimeout(() = console.log("2"), 0 …
- Configuration, Secrets and Storage
Keep settings out of images, keep sensitive values protected, and keep important data when a pod is replaced …
- React Fundamentals
… const [count, setCount] = useState(0); return ( <div <p You clicked {count} times</p <button onClick={() = setCount(count + 1 …
- Safe AWS Deployments with IaC and CI/CD
… Treat the preview ( terraform plan or CloudFormation change set) as something to review, not an automatic approval. CI …
- MVC, MVP & MVVM
… the <script setup part acts as the ViewModel -- <script setup import { ref, computed } from "vue"; const email = ref …
- Async JavaScript: Promises, async/await and Node's Event Loop
… first process.nextTick , then promise microtasks. mermaid flowchart LR T["⏱️ timers<br/ setTimeout / setInterval"] -- P["📥 poll<br/ I …
- ACID, Transactions & Locks
… UPDATE inventory SET available = available - 1 WHERE sku = :sku AND available 0; If zero rows change, inventory was …
- Resources, QoS and Scheduling Control
… always set memory request equal to memory limit, set a CPU request, and be careful with CPU limits …
- Putting AI Systems into Production
… Trim irrelevant context, cap output length, cache only where privacy and freshness allow, and set per-user or …
- Imports, Moved Blocks, and Safe Refactoring
… Import does not guarantee that your configuration matches the current settings. For S3, public-access settings and versioning …
- Nginx Reverse Proxy & HTTPS
… In Express, also set app.set("trust proxy", 1) . Several apps on one server Each app gets its …
- Deploy a Node.js App to a VPS, Step by Step
… 3000; proxy set header Host $host; proxy set header X-Real-IP $remote addr; proxy set header X …
- Month 4: RAG and Knowledge Systems (Weeks 13-16)
… This is your first evaluation set. Weekend build Knowledge AI v1 : FastAPI endpoints /ingest and /ask , with answers …
- Brokers, Replication & Durability
… The leader plus all caught-up followers form the ISR (in-sync replica set). mermaid flowchart LR L …
- Atomic Design & Component Libraries
… React.ReactNode; }; export function SettingsTemplate({ navigation, children }: SettingsTemplateProps) { return ( <div className="settings-layout" <aside {navigation}</aside <main {children …
- CI/CD with GitHub Actions
… actions/setup-node@v4 with: node-version: 22 cache: npm reuse downloaded packages between runs - run: npm ci …
- Python Fundamentals
… virtual environments, types and mutability, lists/tuples/dicts/sets, comprehensions, functions with args and kwargs, classes and dataclasses …
- Caching & Redis
… SET product:42 (expires in 300 s) end js async function getProduct(id) { const key = product:${id} ; const …
- React Internals & Concurrent Rendering
… string) { setQuery(value); // urgent: input must reflect typing startTransition(() = setSearchTerm(value)); // may yield to interaction } Transitions do not …
- State Management (Redux, Zustand, TanStack Query)
… state.items.filter((i) = i.id !== id) })), clear: () = set({ items: [] }), })); // Any component, no Provider needed. Select only what …
- Data Preparation and Model Training
… the data version and settings, and record the metric on the same validation set. Include the baseline and …
- Data Structures for Scale
… keep every visitor ID in a set. Billions of IDs eat many gigabytes of memory. 3. "Seen this …
- Python Web APIs: FastAPI and Django
… owner = models.ForeignKey(settings.AUTH USER MODEL, on delete=models.CASCADE, related name="tasks") title = models.CharField(max …
- Bash Scripting & Scheduled Jobs
Write safe Bash scripts with variables, conditions, loops and functions, make them fail loudly with set -euo pipefail …
- Graphs: BFS & DFS
… a set of nodes (vertices) connected by edges . mermaid flowchart LR A((Home)) --- B((Park)) A --- C((School …
- Serverless: Lambda and API Gateway
… Inspect invocation permission, handler logs, integration settings, route/stage, and response shape before changing unrelated database settings. Further …
- Go Web Services with Gin
… known origins ( gin-contrib/cors ), trusted proxies set ( r.SetTrustedProxies ) - [ ] Auth middleware on protected groups; check object ownership …
- Frontend Performance & Core Web Vitals
… update the input now startTransition(() = setFilter(e.target.value)); // non-urgent: filter 10,000 rows later } Fixing CLS …
- Jenkins: From Install to Your First Pipeline
… Unlock and set up 1. Open http://your-server:8080 (or your HTTPS domain). 2. Get the one …
- AI Evaluation, Safety, and Security
… A single successful demo is not evidence of production readiness. Build an evaluation set Collect representative, permissioned examples …
- Transformers and Large Language Models
… These approaches solve different problems. Generation settings and limitations Sampling settings such as temperature affect how output tokens …
- Providers and Your First AWS Resources
Configure AWS safely and provision a private, versioned S3 bucket with explicit resource settings. Before running this lab …
- OOP Mistakes and Interview Questions
… Getters and setters for everything ts // ❌ "Encapsulated" but every field is open account.setBalance(account.getBalance() - amount); // ✅ Expose …
- Your Practical Kubernetes Workflow
… a Deployment, Service, Ingress, settings, and possibly autoscaling. Helm keeps them together as a chart and lets you …
- StatefulSets, DaemonSets, Jobs and CronJobs
… registry.example.com/shop-api:1.9.0 command: ["node", "migrate.js"] For parallel work, set completions (how …