Today I will cover the very basics of Rust’s enum type. Enums are a pillar of the language. What is an Enumeration? An enumeration, or enum, is a type of data structure useful for enumerating possible variants of something. In addition, enums can optionally contain data. How Do I Create an Enumeration? Let’s say we…
Grey Skies
It’s wonderful to see the cruise ships returning to Canada Place. Also, the grey skies are pretty symbolic of our weather the past few weeks.
Rust: Pouring the Footings — Compound Data Types
Selecting a data structure model is a key step in software development. Previously, I showed the very basic single data types in Rust. This article covers compound data types. Compound types can incorporate multiple building blocks in one overall type. Tuples A tuple can contain multiple values, each with its own type, into one single entity. Tuples…
Rust: Pouring the Footings – Single Value Data Types
Today I continue my writing campaign about the Rust language. If you haven’t noticed, I’m roughly following the chapter layout of The Rust Programming Language, also known as “The Rust Book”. I’ve tried repeatedly to read The Book, but have concluded reading passively is useless. It’s a book that requires active reading. So, I will…
Rust: Pouring the Footings
Before I continue in my series of articles on learning Rust, I’d like to remind you that I’m a random internet nobody. I’m far from an expert in this language and feel I have no right to be writing about anything to anyone most of the time. Learning to code is difficult and there are…
Rust: Constants…or how to say no to magic values
The journey to proficiency in Rust continues. In a previous article, I provided a brief overview of how to get started with Rust by creating a tiny cliche of a program that displays the message, “Hello, World!”. This article will focus on a specific language aspect, namely constants. What is a Constant? A constant is a…
Rust: Let the Journey Begin
The last year and a bit has seen me dust off very old coding skills. The goal is to modernize myself and build things that will help myself and eventually the world around me. I’ve danced with several things but at the beginning of 2022 decided to double down on the Rust language. Rust is an immensely…
River Sunset
Sunset over the river at Burnaby Fraser Foreshore Park. Views like this have been few and far between the last few months.
Room with a View
Snow Day!!
Overnight on the 29th/30th, the Lower Mainland received a serious dump of snow, adding to what was already on the ground. It’s a winter wonderland!