Blog Posts

Mathematical calculator buttons with ruler

Day 11: Modular Multiplicative Inverse

We build another part of the mystery project by creating a function that calculates the modular multiplicative inverse of a number.

The Beauty of Mathematics

Day 10: Least Common Multiple

We continue our mystery project by calculating the Least Common Multiple. We also bump into the Euclidean algorithm along the way.

Prime Numbers

Day 9: Rust Primality Test

The first task in a new project which shall remain unnamed until it’s ready is a primality test, i.e. checking if a number is prime.

Pattern Matching

Day 8: Rust Match

I take a look at the construct I’ve been most curious about, Rust Match. I also prove beyond a doubt that it’s a Switch statement.

Coffee near the laptop closeup. Working from home.

Day 7: Ownership in Rust

Today I take a look at the concept of Ownership in Rust. This is the magic sauce that makes Rust “memory safe” and beginner Rusticians cry.

Laptop Macbook Codes Coding  - StockSnap / Pixabay

Day 6: Disemvowel

Today we disemvowel a string. That word is beautiful and means to remove every vowel out of a string. Disemvowel it!

Day 5: Counting Bits

Today I take a break from reading and tackle the simple problem of counting bits in Rust. This is my first Rust solution.

Day 4: Rust Functions and loops

Today I’m looking at functions and loops. They are an important part of any language and deserve a closer look.

Day 3: Rust Variables and Data Types

Today I take a look at Rust variables and data types. It’s a gentle introduction to a language not too alien from JavaScript.

Day 2: Cargo

Today I take a look at cargo, Rust’s answer to npm and yarn. It’s a tool that makes a developer’s life that much easier.