The worst part of database migrations is not being able to roll back after a production incident. Drizzle Kit generates migrations without connecting to a database β it diffs against local JSON snapshots instead. This makes migration SQL deterministic and reviewable. From push to generate, this article walks through the internals of meta/ snapshots and the __drizzle_migrations table.
All blog posts - Page 1
Stop memorizing the difference between __proto__ and prototype. Starting from what `new` really does, we break down why the prototype chain exists, how it saves memory, and the real mechanics behind class syntactic sugar.
Notes and tips on TypeScript's type system, including generics, type narrowing, infer, and hand-written implementations of built-in utility types.
Build Vue3's reactive() from scratch β a concise walkthrough of Proxy interception, dependency tracking (track), update dispatch (trigger), and handling Reflect and effect edge cases.
Breaking down the four-step internal process of the `new` operator, revealing that `class` is essentially syntactic sugar over `function` + prototype binding.
call passes args with commas, apply passes args as an array, bind does not execute immediately. A crisp cheat sheet for the three hard-binding methods.
Stop memorizing rules. Starting from what `this` really means, we break down the four invocation patterns, the classic `this`-loss pitfall in classes, the essence of arrow functions, and when you shouldβand shouldn'tβuse them.
Hand-implementing JavaScript array core methods β forEach, map, filter, reduce β mounted on the prototype chain.