#React

2 posts · All tags

  1. Using the CRAP Metric to Find the Functions That Most Need Tests

    With mostly agent-written code, high line coverage couldn't show whether the gaps sat in the most complex functions; a CRAP threshold of 8 cleared 200-plus offending functions and turned up 72 issues to fix.

    Engineering ·
    2026.10.10

  2. How Many Ways Can a Number Input Go Wrong? Clearing Saves 0, Typing e Wipes It

    Clearing the reserve field on my lending settings page silently saved 0; this covers string drafts, checking upper and lower bounds differently, the e key in type=number, and per-keystroke input jsdom can't test.

    Engineering ·
    2026.10.10