Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

I made a small website to check Codex reset

Hi, I made this small website because I often go X to check if Codex reset. But I found many posts use the word “reset”, and maybe they talk about different thing. Sometimes it is personal reset time.

What React Flow Doesn't Do For You: Building a Diagram Editor With Domain Rules

I built a diagram editor for genograms. If you have not run into the term: a genogram is a diagram of a family that records more than descent.

  • React Flow provides canvas, node/edge data model, but lacks domain-specific rules for genograms
  • Custom node components with SVG graphics required for specialized shapes representing individuals
  • Custom edge components and edge types needed for accurate family relationship rendering in genograms

Small Calculator, Three Bugs: Input Parsing, Unit Drift, and Stale Results

A calculator with two inputs and one output is the "hello world" of interactive UI. It is also a small minefield. These are three defects I hit while building bidirectional CPM ↔ CPC conversion, and…

  • Bug 1: Percentage drift in CTR calculation due to treating CTR as percentage
  • Bug 2: Validation allowing empty fields treated as zero instead of leaving blank
  • Bug 3: Stale results displayed after invalid form submission

Normalize Units at the Boundary, or Ship a 12x Bug

A user types 3 into a depth field. The label says inches. Your formula assumes feet. You just shipped a 12x error, and nothing in the type system noticed, because both values are number .

  • User inputs depth in inches, but formula assumes feet
  • Convert all inputs to a single internal unit at boundary
  • Validate unit and number, reject unknown or non-positive values

More from Friday 25 September →