Writing
Notes on building and running web products, plus older articles on Node.js, WebRTC and JavaScript.
Systems
WebRTC
WebRTC and RTCPeerConnection: establishing a peer-to-peer connectionSetting up an RTCPeerConnection: offers, answers, ICE candidates and the remote stream.WebRTC and the getUserMedia API: a step-by-step guideCapturing camera and microphone streams with getUserMedia, step by step.WebRTC: connecting people in real time, part 1What WebRTC is, and the pieces browsers use to connect people directly in real time.
JavaScript
Deep copy and shallow copy in JavaScriptThe difference between shallow and deep copies of objects and arrays, and how to make each.Arrow functions and the "this" keyword in JavaScriptHow arrow functions handle `this` differently from regular functions, and when that matters.Is JavaScript an object-oriented programming language?How JavaScript implements object-oriented programming with prototypes, and how that differs from C++ or Java.
Node.js
Multithreading in Node.js with worker threadsWhen CPU-bound work blocks the event loop, and how worker threads move it onto separate threads.What is the event loop in Node.js?How Node.js schedules callbacks, timers and I/O on a single thread — and what that means for the code you write.Scaling Node.js apps with clusteringUsing the cluster module to spread one Node.js server across every CPU core, measured on a slow route.