Hello, and welcome to my blog!

Artur gets a blog working and is excited to use it. - Published on 2026-01-30


So glad to finally get some kind of blog working. It's the first hour of the day and I am very tired. It's also something I have been meaning to work on for a while as an alternative for writing posts on Mastodon, which was somewhat limiting. Regardless, I will still post there, but I will probably post the first paragraph as the appetiser for the rest of the toot to be linked to here.

Now, I need to see if this supports the markdown features I need, such as codeblocks, lists and whatnot. So now, it's time for the codeblock test:

struct Book<'a> {
    title: &'a str,
    description: &'a str,
    author: &'a str,
    isbn: &'a str,
}

impl<'a> Book<'a> {
    fn new(title: &'a str, description: &'a str, author: &'a str, isbn: &'a str) -> Self {
        Book {
            title,
            description,
            author,
            isbn,
        }
    }
}

impl<'a> PartialEq for Book<'a> {
    fn eq(&self, other: &Self) -> bool {
        self.isbn == other.isbn
    }
}

impl<'a> std::fmt::Display for Book<'a> {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        write!(f, "{}, by {}", self.title, self.author)
    }
}

fn main() {
    let book_one = Book::new(
        "1984",
        "Big brother is watching.",
        "George Orwell",
        "0141036141",
    );
    let book_two = Book::new(
        "Nineteen Eighty Four",
        r#"Winston Smith works for the Ministry of Truth
in London, chief city of Airstrip One. Big
Brother stares out from every poster, the
Thought Police uncover every act of betrayal.
When Winston finds love with Julia, he
discovers that life does not have to be dull
and deadening, and awakens to new
possibilities. Despite the police helicopters
that hover and circle overhead, Winston and
Julia begin to question the Party; they are
drawn towards conspiracy. Yet Big Brother will
not tolerate dissent - even in the mind. For
those with original thoughts they invented
Room 101 ..."#,
        "George Orwall",
        "0141036141",
    );
    if book_one == book_two {
        println!("Your two books are the same, based on their ISBN.");
    }
    println!("Book 1: {}, Book 2: {}", book_one, book_two);
    println!("{}", book_one.description);
    println!("{}", book_two.description);
}

Works? Wonderful. Here's MY list of friends:

Looks successful. Thanks for reading!