Topic
Typescript
14 articles on Typescript — each with a runnable playground and a quiz.
Articles
NestjsYou copy and reverse the array to find the last match.
Aug 14 · 4 min JavaScriptYou use
Aug 6 · 4 min JavaScriptYou've been wrapping
Aug 1 · 5 min TypeScriptYou still write
Jul 24 · 4 min JavaScriptYou've been doing Set math by hand. JavaScript finally shipped
Jul 23 · 4 min JavaScriptYou keep escaping the Promise constructor.
Jul 22 · 4 min JavaScriptYou're rethrowing errors and losing context.
Jul 21 · 4 min TypeScript
NestJS Module Encapsulation Explained (with Cheat Sheet)
Sep 13 · 14 min NestjsNestJS Dependency Injection Explained (with Cheat Sheet)
Sep 13 · 14 min JavaScriptaddDays() Mutated a Date Three Components Away From Where I Called It
Sep 12 · 5 min NestjsNestJS Request Lifecycle Explained (with Cheat Sheet)
Aug 28 · 13 min JavaScriptYou copy and reverse the array to find the last match. findLast() searches from the end directly.
Aug 14 · 4 min JavaScriptYou use obj.hasOwnProperty(key) to check property ownership. It can silently fail. Object.hasOwn() is the safe replacement.
Aug 6 · 4 min JavaScriptYou've been wrapping new URL() in try/catch. URL.parse() does it natively.
Aug 1 · 5 min TypeScriptYou still write finally { resource.close() }. The using keyword does it automatically.
Jul 24 · 4 min JavaScriptYou've been doing Set math by hand. JavaScript finally shipped .union(), .intersection(), and friends.
Jul 23 · 4 min JavaScriptYou keep escaping the Promise constructor. Promise.withResolvers does it right.
Jul 22 · 4 min JavaScriptYou're rethrowing errors and losing context. Error.cause fixes that.
Jul 21 · 4 min TypeScriptTypeScript Generics: The Complete Guide (with Cheat Sheet)
Jul 20 · 15 min page 1 of 2