Something akin to a blog. Thoughts, photos, and relevant updates are collected here, click a tag to narrow by interest.
🔖
Today I Learned ~D[2025-01-10]
Today's TIL has a twist ending... so stick around.
Elixir has a shortcut for creating anonymous functions. I've alway...
TIL Struct matching in Guards
Not so much a TIL but I always get confused with the proper syntax. You can pattern match on a struct and use it in a gu...
TIL UUIDv4 vs UUIDv7
I've always run with UUID v4 because it's the default for the `Ecto.UUID` library in Elixir. However a coworker recommen...
TIL INSERT INTO with SELECT constraints
In the past month I've had to write a lot of SQL to migrate a system and split existing "locations" into tenants ie. mig...
Today I Learned ~D[2024-01-03]
You can use Erlang's `tc` function to see how many microseconds a function takes. For example, say you were curious if ...