Tag

#ada-brackett

Databases

Databases

SeaORM, Diesel and Django ORM, Oh My! Picking an ORM Without Getting Lost on the Yellow Brick Road

Lions and tigers and bears, oh my! Except it's SeaORM, Diesel and Django ORM, and the forest is your database. The same query in all three, what each one is best at, and the N+1 problem that eats all of them alive.

Ada Brackett5 min read
Cloud

Cloud

Build a Tiny JSON API With Axum: Rust on the Web in Fifteen Minutes

Your Rust programs have been talking to the terminal. Time they talked to the internet. Build a notes API with Axum, with routes, JSON in and out, shared state and proper 404s, in about 50 lines.

Ada Brackett4 min read
Cloud

Cloud

Ollama Review: Running Local LLMs on Your Own Machine, No Cloud Required

What if your AI assistant lived in your basement instead of someone else's data centre? A review of Ollama: how to run local LLMs with it, what hardware you really need, the API that makes it useful, and where it falls short.

Ada Brackett5 min read
Cloud

Cloud

Async Rust With Tokio: Build an Echo Server That Juggles a Thousand Clients

One waiter, forty tables, and nobody waits for their soup. That's async. Learn async Rust with Tokio by building a 30-line TCP echo server, then meet the one mistake that freezes the whole restaurant.

Ada Brackett4 min read
Cloud

Cloud

Rust Iterators: Fire Your for Loops (They'll Be Fine, They Have Savings)

Your for loop has been doing three jobs at once and it's tired. Rust iterators split the work into map, filter and sum, cost nothing extra at run time, and are lazier than a cat in a sunbeam. A ten-minute lab.

Ada Brackett4 min read
Cloud

Cloud

Rust Lifetimes Without the Fear: They're Just Expiry Dates

Rust lifetimes have a reputation, like the haunted house at the end of the street. Inside, it's just a milk carton with an expiry date. Learn what 'a means, why the compiler asks for it, and when to just return a String.

Ada Brackett5 min read
Cloud

Cloud

Go Context Cancellation: Stop Work the Moment the Client Hangs Up

Go context cancellation from zero: build a 50-line server that stops a slow job when the client hangs up or a deadline passes, read the reason with context.Cause, and pass ctx down to your database and outbound calls.

Ada Brackett5 min read
Cloud

Cloud

Rust Ownership in Ten Minutes: Nobody Steals Your Car on the Highway

Ever had your car stolen while you were doing 70 on the highway? Neither has Rust, because Rust cares. Learn Rust ownership by building a 25-line word counter, then break it on purpose and meet the compiler that saves you.

Ada Brackett5 min read
Cloud

Cloud

Rust Error Handling: The Question Mark That Saves Your Program

Ever told a joke, been heckled, and just walked off stage mid-sentence? Most programs handle errors like that. Rust makes you plan for the heckler. A ten-minute lab with ?, Result, thiserror and anyhow.

Ada Brackett4 min read
Cloud

Cloud

Build a Rust CLI With clap: Flags, Help Text and Subcommands in Ten Minutes

Ever ordered at a drive-through where the speaker only understands one exact sentence? That's a command-line tool with hand-rolled argument parsing. Build a Rust CLI with clap and get flags, --help and polite errors for free.

Ada Brackett4 min read
Databases

Databases

Postgres uuidv7 in PostgreSQL 18: Time-Ordered Primary Keys in Ten Minutes

PostgreSQL 18 ships a built-in uuidv7() function, so time-ordered UUID primary keys need no extension. A ten-minute lab: make a table, read the timestamp back out, backfill with a shift, and know when not to use them.

Ada Brackett5 min read
Cloud

Cloud

Go Context Cancellation From Zero: Stop Work When the Client Hangs Up

Go context cancellation from zero: build a 50-line server that stops a slow job when the client hangs up or a deadline passes, read the reason with context.Cause, and pass ctx down to your database and outbound calls.

Ada Brackett4 min read