This book was born out of curiosity about the Rust programming language. The book is designed for individuals who are just starting out and want to get an idea of what Rust programming is like. It's not for experts, but you will be able to write fairly sophisticated programs after completing the book. The purpose of the book is to break the ice so that you, the reader, can then move on to more advanced texts.
The book is in color and is 112 pages in length.
Buy the paperback for: $14.95 from Amazon
This book is self-published, meaning updates will be released on any corrections or fixes that need to be addressed. If you have comments or fixes, you can contact me at:
hsauro@gmail.com
Book Contents
1. What is Rust
2. Some Basic Computer Science
3 Setting Up
4 Hello World
5. Some Basics
6. Basic Data Types
7. Operators
8. Modules and use
9. Decision Making
10. Loops
11. File and User Input
12. Arrays
13. Vectors
14. Strings
15. Structs
16. Functions
17. Advanced Topics
18. Examples
This infamous Hello World program in Rust:
// This is the main function
fn main() {
// Print text to the console
println!("Hello World!");
}
Learning Rust
This suggestion might be controversial for some, but one way to learn a new language (or anything, for that matter) is to first learn recipes on how to do certain things. Once those have sunk in, it's possible to learn the underlying theory and build from there. It means the learning curve is less steep, and you can start being productive fairly soon, and learning by doing is key to learning any new programming language.
I am a computational biologist working on algorithms for high-performance computer simulation. I have 30 years of programming experience in C, C++, Python, and Object Pascal. I even have some Z80 and 68000 assembly language experience from many years back.