shlogg · Early preview
Jeff Mitchell @sentinel1909

I'm a self-taught developer, focusing on the Rust language.

Rust's Option Type: Handling Null Values With Grace

Rust's Option enum: a flexible way to represent null values. It can contain something (Some) or nothing (None), making it perfect for handling optional data and errors.

Creating Middleware In Actix Web For Rust Developers

Creating middleware in Actix Web involves defining a struct implementing the `Middleware` trait with `forward` & `init` methods. Middleware can be used to wrap services, e.g., checking API keys in request headers.

Rust Basics: Single-Value Data Types Explained

Exploring Rust's single-value data types: integers (i32), floating-point numbers (f64), booleans, and characters. Learn how to declare variables and perform basic math operations in this beginner-friendly guide.

Rust Fundamentals: Comments, Variables, Mutability, And Shadowing

Learning Rust: Comments, Variables, Mutability & Shadowing. Comments are crucial for understanding code, variables are immutable by default, but can be made mutable with `mut`. Shadowing allows transforming values without changing their type.

Learning Rust Vectors In Depth

Vectors in Rust are a collection that can grow/shrink in size, storing items next to each other in heap memory. Created with `Vec::new()` or initialized with values, elements accessed/modified using indexing or `.get()`.

Learning Rust From Scratch: A Beginner's Guide

Learned to code with Rust in 2020, now mastering its power & performance. Steep learning curve but worth it! Get started with Rust & Visual Studio Code using Cargo package management tool. Say hello to coding in Rust!

Rust Crates, Packages, And Modules Explained

Mastering crates, packages & modules in Rust takes time & practice. Understand crate types (binary & library), package structure, modules for organization & privacy control, paths, use keyword & namespace operator to write maintainable code.

Rust Beginner's Guide: Overengineering A Guessing Game

Finished Chapter 2 of "The Rust Book" & recreated the Guessing Game from memory with some overengineering. Highlights important concepts in Rust & serves as a great jumping off point for exploration. GitHub link at end of article.

Rust's Match Construct: Controlling Program Flow With Pattern Matching

Rust's match construct controls program flow like if-else, but more powerful & addictive! Evaluate multiple possibilities, handle all types with exhaustive matches, and catch common outcomes with the `_` pattern.

Rust Struct Initialization And Update Syntax Explained

Rust structs: field init shorthand, update syntax, tuple & unit structs explored. Learn how to initialize and update structs with ease, and discover the power of tuple and unit structs.

Rust Decision Logic: If, Else, And Else If Expressions

Rust's basic decision logic: `if`, `else if` & `match`. Control flow with conditional statements for different code paths & outcomes. Learn how to make decisions in your Rust programs!

Declaring And Using Constants In Rust: A Beginner's Guide

In Rust, constants are immutable values bound to a name, avoiding "magic values" and making code updates easier. Declare with `const` keyword, all caps convention, type annotation, and binding value with `=` operator.