This post will show how to make an HTTP request using the net module, rather than something more high-level like http or request . So we build on top of the existing TCP connection support. It turns out basic HTTP requests are pretty straightforward! ... more
FromJS is a dynamic dataflow analysis tool for JavaScript. That means it collects data while your program is running, and can then use that data to answer questions about your program. ... more
V8 is the JavaScript engine that Chrome and Node use to run JavaScript code. Take this quiz to discover some interesting implementation details about how V8 stores values in memory. ... more
I’ve been looking at the ChakraCore source code recently, and I realized that before I didn’t have a good grasp of how JavaScript engines and browsers (or Node) actually relate to each other. ... more
There’s a new feature in Chrome Canary: JavaScript code coverage. It tells you how much of your code is actually executed, vs how much is loaded unnecessarily. ... more
ES2015 introduced the new Map and WeakMap objects to JavaScript. They can be used as a key-value store, but unlike normal objects in JavaScript you can use objects as keys. Keys for normal objects ( {} ) always have to be strings, and if you try to use ... more
Microsoft are working on a time-travel debugger for JavaScript that allows you to step backward as well as forward. It’s currently in preview and won’t always work, but it’s really cool to play around with. ... more
Since JavaScript allows most native methods to be overwritten I was wondering if it’s possible to speed up an application by adding caching to native methods. ... more
When inspecting a page with FromJS you can find the JavaScript code that’s responsible for a particular part of the UI. This article explains how that works. ... more
JavaScript compilation and bundling tools usually output a source map file in addition to the compiled code. A debugging tool like Chrome DevTools can then use the source map to show you the code you wrote, rather than the compiled code that Chrome is ... more
You’ve probably used a CSS generator like Sass or Less, or worked in a language like ES 2015 or CoffeeScript that is compiled to JavaScript code that the can run in the browser. ... more
Checking if two JavaScript objects are equal to see if you need to update the UI is a common task in React. (Ideally you wouldn’t mutate your objects, but oh well.) ... more