Published in CodeX·Jul 15Member-onlyRust: The Memory Doesn’t RemainThis is the article I’ve been needing to write for about a month (maybe two) but have fretted and procrastinated. Memory, ownership, borrowing…oh my! These concepts are probably the most difficult things in Rust. I worry that I’m not doing these topics justice and potentially damaging you, dear reader, on…Programming6 min read
Published in CodeX·Jul 2Member-onlyRust: Method to the MadnessThe Method Syntax I’m going to turn my attention now to something called the method syntax. It’s common to structs and enums, which I’ve covered in previous outings. Structs and enums can have methods associated with them. This enables custom functionality to be implemented. Let’s do this discussion with the help of an…Programming3 min read
Published in CodeX·Jun 12Member-onlyRust: Bigger Building Blocks — Structs ReloadedIn a previous article, I introduced you to structs in Rust. Structs are flexible data structures that allow the grouping of fields together under one roof. Structs have a lot of capability. Let’s take a look at the things I didn’t cover last time out. The Field Init Shorthand The fields of a struct…Beginner4 min read
Published in CodeX·May 22Member-onlyRust: Bigger Building Blocks — Intro to EnumerationsToday 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. Enums are best to describe variations of one…Programming4 min read
Published in CodeX·May 11Member-onlyRust: Bigger Building Blocks — Intro to StructsI’m roughly following the order of The Rust Book in my writings, but I intend on deviating a little. The next topic is ownership and borrowing, but I don’t feel like I’m quite able to write about those two things coherently yet. Instead, I will write about the first of…Programming3 min read
Published in CodeX·May 6Member-onlyRust: Building Something — Saying HelloI’ve covered what I consider the core concepts of the Rust language, namely: constants comments, variables, mutability and shadowing simple data types compound data types functions decision making flow control From this core, useful things can arise. Let’s build something. In my Let the Journey Begin piece, I showed you…Programming5 min read
Published in CodeX·May 1Member-onlyRust: Controlling the FlowLast time, in Rust: Decisions, Decisions, we looked at a method for adding logic within a program, via the if and if else expressions. Next up, we see how we can further control the flow, through loops. Loops allow repetition of blocks of code until some desired event or outcome…Programming4 min read
Published in CodeX·Apr 28Member-onlyRust: Decisions, DecisionsSoftware capability would be very limited if there were no ability to make decisions and follow different logic paths. The ability to branch and provide different outcomes, based on either internal results or external user input, is essential. Rust provides basic decision logic in the form of the if and…Programming4 min read
Published in CodeX·Apr 23Member-onlyPillarsThere is so much pressure to build and develop faster, faster, faster. The result of the rush is a creation that can’t carry its own weight and buckles under pressure. It’s important to master the pillars of web development. …Programming3 min read
Published in CodeX·Apr 22Member-onlyRust: Let’s Get FunctionalIn my last Rusty writings, I covered Rust’s compound data types. Today I will write to you about functions. Functions are essential tool to help make code more organized and maintainable. Purpose I’m sure you are familiar with the term spaghetti code, in which your code is a nested mess…Programming4 min read