Tag: javascript
All the articles with the tag "javascript".
Every Core React Hook, Visualized — An Interactive Walkthrough
Posted on:April 26, 2026 at 10:00 AMThe eight hooks that carry every React app — useState, useReducer, useEffect, useContext, useRef, useMemo, useCallback, useTransition — stepped through one render at a time. Watch hook slots fill, effects fire on a render→paint→effect timeline, dependency caches hit and miss, and concurrent transitions get interrupted live.
The Node.js Event Loop — An Interactive Walkthrough
Posted on:April 20, 2026 at 10:00 AMThe event loop, nextTick, microtasks, setImmediate and the six libuv phases — stepped through one frame at a time. Watch each callback move between compartments, then test yourself with ordering quizzes.
Node.js Event Loop Internals — What Actually Happens When You await
Posted on:March 9, 2026 at 10:00 AMA deep dive into libuv's event loop phases — timers, I/O callbacks, poll, check, and close — explaining exactly what executes when and why. Includes microtask queue ordering, setImmediate vs setTimeout, and common pitfalls that cause production latency spikes.
TensorFlow.js vs scikit-learn in the Browser — Two Paradigms of Client-Side ML
Posted on:November 17, 2025 at 10:00 AMTensorFlow.js brings neural networks to the browser natively. scikit-learn runs via Pyodide WebAssembly. Same Iris dataset, same task — totally different philosophies. Train both client-side with no backend and compare accuracy, interpretability, and the cold-start gap.
Python vs JavaScript DataFrames in the Browser — Live Benchmarks with No Backend
Posted on:October 27, 2025 at 10:00 AMBoth Python (pandas via Pyodide WebAssembly) and JavaScript (arquero) can process DataFrames entirely in the browser. This post runs the same groupby, filter, and pivot benchmarks in both — live, client-side, no server needed — and measures the real tradeoffs.
Node.js Worker Threads — True Parallelism Without the Cluster Mess
Posted on:December 9, 2024 at 10:00 AMNode.js Worker Threads enable true CPU parallelism in a single process. This post covers the communication model, SharedArrayBuffer for zero-copy data sharing, thread pool patterns, and benchmarks showing when Workers outperform cluster vs when they don't.
Node.js Streams and Backpressure — Why Your File Uploads Are Slow
Posted on:September 9, 2024 at 10:00 AMHow Node.js streams work under the hood, what backpressure is and why it matters, and the specific patterns that cause slow uploads, memory bloat, and dropped data. Includes a comparison of buffered vs streaming throughput.