Bob Belderbos

@bbelderbos.bsky.social

Helping developers master Python, Rust & AI by building production-grade software Co-founder @ Pybites • 20 years building software

What is sqlmodel / sqlalchemy's `flush`? It's like an intermediate step; the database executes within an open transaction, but the changes are not yet permanently written to disk as `commit` does. See it as a "draft save" vs "publish it" (final).

BildBild

LLMs writing code is awesome. I leverage it every day. They cannot decide though what to build vs not to build. I ditched a vibe coded web app the other day in favor of a GitHub action that did the same job, if not better.

Bild

Day 15 · Capstone: Mini Parser 🦀 The final day + exercise. Combining many concepts you've learned over the last two weeks: Tokens → parsed value → typed result. Enums, `Result`, `match`, ownership; all in one capstone exercise. You'll write some real #Rust in this one. 💪

Bild

Not sure what to build next? Sometimes the most trivial things are interesting candidates. I am running `emo` dozens of times each week. It came out of the need/want to quickly search emojis from the command line and copy them to the OS clipboard.

Bild

10 terminal windows open with agents running simultaneously? 🤖🔄 The net gain is probably negative. Focus on fewer things (ideally one) to get greater, more meaningful results. 📈

Bild

Writer’s block, or do my ideas just lack real-world complexity? Sitting on a stack of draft posts, but none of them feel appealing enough right now. Maybe it's just the summer 🌞, but being a data-driven 📊 guy, time to get some insights.

Bild

Day 9 · Result Handling 🦀 Python throws exceptions ("exception handling"), #Rust returns errors as values: `Result<T, E>`. This is another concept I really dig, because it's more explicit: the failure is right there in the type signature. And you must handle it!

Bild

"Rust is for people who want to be punished." That was Jochen three months ago. A lawyer who codes for fun, years of Python, zero Rust. Then a podcast episode, a $49 offer, and a cabin on the Danish coast.

Bild

Day 5 · Control Flow 🦀 In #Rust, `if` is an *expression*, it returns a value. So instead of assigning inside each branch, you can assign an entire if-else block, for example: `let grade = if score > 90 { "A" } else { "B" };` Pretty elegant!

Bild