Spot the bug:

mod coding;
use crate::coding::*;

mod blogging;
use crate::blogging::*;

#[tokio::main]
async fn main() {
    tokio::select! {
        _ = code() => {println!("finished writing code")}
        _ = blog() => {println!("finished writing blog posts")}
    }
}

async fn code() -> () {
    loop {
        think_about_code();
        write_code();
        debug_code();
        rewrite_code();
        release_code();
    }
}
async fn blog() -> () {
    loop {
        think_about_blogging().await;
        write_blogpost().await;
        read_blogpost().await;
        revise_blogpost().await;
        publish_blogpost().await;
    }
}

Here’s the complete repo:
https://github.com/englishm/code-n-blog

Try running it and see how much blogging happens…

Today is Thursday of my seventh week at the Recurse Center as a participant in this year’s Summer 2 batch!

Lately I’ve been learning a lot about writing async Rust by working on my Media over QUIC publishing tool. I have a very early version of it working now, but the code still needs a lot of cleanup.

More on that later.

For now, see if you can tell what’s wrong with the code above. If you get it figured out before tomorrow, let me know on Zulip, IRC, Amateur Radio, Hachyderm, Bluesky, Discord, or wherever else you can find me (even if it’s the site formerly known as Twitter).