Tags

testing

2 posts, 31 min of reading. Spans show reading time on a 0 to 70 min scale.

  1. DFilterForge Retrospective 06: Every number has a source, yet one digit was still missing on a phone

    The DFilterForge site forbids hand-written numbers: every value on a page carries its provenance, pointing to a location in a committed file in the repository, and a test recomputes it independently. This post tells how that chain came to be and the holes it had: a check that only recognized ASCII digits, numbers that existed only in server-rendered HTML, two values swapped, a formatting function shared with the page, and the one time the text was all correct but the pixels were wrong: on a 320 px phone, a real bill read as USD 0.2. Finally, the unreproducible README animation and a few deployment traps.

    Reading time: 17 min
  2. An engineering checklist for a purely static game: saving, input, typesetting, and publishing in The Road We Came

    The Road We Came has no backend, and the words players write never leave the browser. This post gathers the engineering details it took care of into a checklist: saving and refreshing, how tests walk through a whole journey, Chinese input methods and mobile keyboards, the vertical scroll and fonts, wind synthesized in the browser, bilingual link previews, zips that are byte-identical every time, visit counting that never collects the text, and the Dependabot and CI setup.

    Reading time: 14 min