This fantastic post is now ten years old, but I revisited it recently and itβs such a joy. Mike Bostock (of D3.js fame) visually guides us through some algorithms using both demos and code.
MIKE BOSTOCK
Please open Telegram to view this post
VIEW IN TELEGRAM
const obj = {};
obj.length = 5;
console.log(obj.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
π10 6
π€£43π19π€14 9
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£60π22π€14 6
const obj = {};
Object.defineProperty(obj, 'length', { get: () => Math.random() });
console.log(obj.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
π6β€3
π€£19π15π€7 4π€©3
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£186π€15 8β€1
const obj = { length: 3 };
console.log(Object.keys(obj).length);
Please open Telegram to view this post
VIEW IN TELEGRAM
π19π€£7π€6β€1
What a treat! Join the creator of Fastify, as well as Node.js TSC member, on an hour long odyssey into the world of streams, a topic in which he specializes. He starts off quite poetically .. a stream is like an array over time .. before quickly getting on to some live coding and demos. This is one in a series of events put on by Platformatic. (75 minutes.)
MATTEO COLLINA
Please open Telegram to view this post
VIEW IN TELEGRAM
π11 2β€1π€1π€©1
const arr = [];
arr[100] = 'a';
console.log(arr.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
π6
π€£46π24π€20β€7π€©2 1
pnpm has long been a fantastic option for folks looking to save disk space and CPU cycles (or for its great monorepo support) while maintaining most of what makes npm great. v9.0 drops Node 16 and 17 compatibility, honors the packageManager field in package.json, makes some default config changes, and adopts Lockfile v9.
PNPM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€7 3π1π€©1
Please open Telegram to view this post
VIEW IN TELEGRAM
const arr = ['a', 'b', 'c'];
arr[-1] = 'd';
console.log(arr.length);
Please open Telegram to view this post
VIEW IN TELEGRAM
π28 8β€7π€5
Works with React, Angular, Svelte, Vue or plain old JS/TS. Handles all sorts of things from Sankey diagrams to maps, graphs, chord diagrams, and traditional line/area charts. The v1.4 release adds support for annotating visualizations in a flexible way. Thereβs a gallery of examples (with code) if you want to dig in.
F5, INC.
Please open Telegram to view this post
VIEW IN TELEGRAM
π7β€3 3
const obj = { a: 1 };
const { b } = obj;
console.log(b);
Please open Telegram to view this post
VIEW IN TELEGRAM
π8
π30π€12π€£3π€©2 2