A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Mojo::UserAgent request format

The get(), post(), etc. methods are both too magic, and not magic enough.

They do what I mean, but only if I remember the order or parameters. Luckily Perl has an easy solution to this problem: Named parameters! AKA Passing a hash, like a normal person.


Good hex values

For UUIDs:

c0ffeeee-cafe-cafe-cafe-c0ffeec0ffee

fadedfad-fade-fade-fade-decaffdecaff

g00dg00d-g00d-g00d-g00d-g00dg00dg00d


Perl Postgres test fixtures

Test::PostgreSQL approach:


Test::DBIx::Class approach: