4.6 Naming Conventions: snake_case, SCREAMING_SNAKE_CASE
Right, let’s talk about naming things. It’s one of the two hard problems in computer science, the others being cache invalidation and off-by-one errors. But unlike cache invalidation, naming is something you have complete control over, and doing it well is the first step toward writing code that doesn’t make you want to claw your eyes out six months later. Rust has a few hard rules and a lot of strong conventions. The compiler will enforce the rules; the linter (clippy) will gently (or not-so-gently) suggest you follow the conventions. And you should listen. Conventions exist so that any Rustacean, anywhere, can open your code and immediately understand its structure without a Rosetta stone. It’s a shared language of clarity.