Daily Shaarli

All links of one day in a single page.

September 2, 2024

What Happened to Unit Tests?

TL;DR we don't care in unit tests about internal testing. That doesn’t mean shallow rendering is wrong.

I personally use them to test well separated logic and iterate over:

  • write the test that make the feature pass
  • implement until the code passes the test
  • next feature or case or exception
  • repeat.

Yes. TDD.

QR Code Generator – Julian Fietkau

The QR Code generator of the author's dream (via https://fietkau.social/@julian/113055759198127054)

  • It's instant, purely client-side, and has no ads or upsells.
  • It has a variety of color, shape, and logo embedding options.
  • There's PNG and SVG export.

The repo is there: https://fietkau.software/QRSVG.git