Skip to content

Posts

JavaScript: Freeze the nested objects in a small configuration

Freeze each known nested configuration object and verify that attempted updates fail.

Read more →

November 17, 2026

SQLite: Preserve child rows when updating a parent

See why INSERT OR REPLACE can delete cascading child rows and use an explicit UPSERT for an existing parent.

Read more →

November 16, 2026

SQLite: Copy rows without losing table constraints

Compare CREATE TABLE AS SELECT with an explicitly declared destination schema before copying production data.

Read more →

November 16, 2026

SQLite: Aggregate child tables before joining totals

Prevent independent sales and refunds from multiplying each other, without discarding legitimate equal amounts.

Read more →

November 16, 2026

Reject duplicate ZIP manifests before reading their contents

Require exactly one manifest.txt member, select it by ZipInfo, and bound the returned bytes without extracting files.

Read more →

November 16, 2026

Node.js: Register event waits before starting the producer

Create all events.once promises before a synchronous emitter can deliver the events you need.

Read more →

November 16, 2026

Node.js: Keep operation and cleanup failures in one report

Retain both failures with AggregateError while preserving original values for single failures.

Read more →

November 16, 2026

Keep Python groupby results before advancing the iterator

Store group contents before advancing groupby, and distinguish consecutive runs from totals across all keys.

Read more →

November 16, 2026

JavaScript: Preserve dollar signs in literal replacement text

Return replacement text from a callback so replaceAll does not interpret dollar substitution tokens.

Read more →

November 16, 2026

JavaScript: Give each array row its own mutable state

Build independent objects and nested arrays with a factory instead of sharing the value passed to fill.

Read more →

November 16, 2026