Tag

#rust

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
Linux

Linux

ripgrep: grep, But It Drank Three Espressos and Read Your .gitignore

grep is a legend. It's also happy to search all 80,000 files in node_modules while you wait. ripgrep searches only what matters, very quickly, with sensible defaults. The flags worth knowing, and when old grep still wins.

Tux Harlow4 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

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
Linux

Linux

zellij vs tmux: The Terminal Multiplexer Cage Match

tmux is the grizzled veteran who's been keeping SSH sessions alive since 2007. zellij is the new kid who shows you every keybinding at the bottom of the screen. Who wins zellij vs tmux? It depends where you're fighting.

Tux Harlow4 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
Linux

Linux

bat, eza and fd Review: The Classic Linux Commands Got a Makeover

cat, ls and find have done the same job since before most of us were born. bat, eza and fd do it with colours, Git awareness and fewer flags to memorise. A review of the makeover, plus the one rule for keeping your server skills sharp.

Tux Harlow4 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
Linux

Linux

Helix Editor Review: A Vim User Tries Selecting First and Acting Second

Fifteen years of Vim muscle memory went into a modal editor that does everything backwards on purpose. A review of the Helix editor: what's brilliant, what hurts, and who should switch.

Tux Harlow4 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