Getting Started With Rust Hello World
Rust is an immensely powerful tool that can be used to create almost any kind of software. It has a steep learning curve, but it’s well worth mastering. Rust is performant, has excellent tools, and some of the best compiler help you’ll ever experience.
Rust is available for Windows, Linux, and macOS and can generally be used to create software for any of these platforms. You may occasionally encounter libraries (called “crates” in the Rust world) that only work on one platform. For example, a crate might only be compiled for Linux but not Windows or macOS, which could prevent your project from running on those systems.
Getting to Know Rust: Constants
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 our first “Hello, World!” program.
This article will focus on a specific language aspect, namely constants.
What is a Constant?
A constant is a value that you bind to a name, similar to a variable. By its nature, the value cannot change. Unlike regular variables, constants are evaluated at compile time, which means Rust figures out their value before your program even runs. This makes them incredibly useful for performance-critical code.
Living on the Edge: Rama
I’ve started a music blog: Crusty Metallion. I doesn’t have a custom domain name yet, but I’ll add that soon.
It’s built with Rama, which is a modular service framework that helps you build web things, such as proxies, web servers, and HTTP clients.
In typical fashion for me, I run before I walk. With the barest reading of their docs and examples, I figured out and put together a sort of template for building out a server rendered web application. The code for this experiment is here: hello-rama-web. It will evolve over time and has given me a good starting point for building.