HandsOnRust
The source code that accompanies Hands-on Rust: Effective Learning through 2D Game Development and Play by Herbert Wolverson (by thebracket)
command-line-rust
Code for Command-Line Rust (O'Reilly, 2022, ISBN 9781098109417) https://learning.oreilly.com/library/view/command-line-rust/9781098109424/ (by kyclark)
HandsOnRust | command-line-rust | |
---|---|---|
19 | 38 | |
384 | 1,297 | |
- | - | |
0.0 | 7.0 | |
9 months ago | 4 days ago | |
Rust | Rust | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
HandsOnRust
Posts with mentions or reviews of HandsOnRust.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-30.
-
ECS, Finally
I'm working my way through the HandsOnRust book that guides you through creating a simple roguelike using Rust and Legion ECS. It's a really enjoyable experience so far, and I'm looking towards trying out Bevy ECS afterwards to compare the two.
https://github.com/thebracket/HandsOnRust
-
Disappointing experience with 'Command-Line Rust': Seeking more comprehensive Rust resources
But if you really want to follow more things then hands on rust and zero to production are two good quality books for learning rust through game dev and web development respectively. But I would still urge you to try a few things by yourself first.
-
Learning Rust with “Hands On Rust”
Started learning rust a while ago but I needed something to walk me through the features while building something useful. I discovered Hands On Rust and have learned more in 3 hours of building flappy bird clones than in two weeks of experimenting with tutorials.
-
I'm a beginner and write Go code. Is there anything similar to 'Let's Go' for Rust?
There is Zero To Production In Rust which goes through building a webserver in rust from the ground up. Or Hands on rust for learning rust by building a game.
-
Any good books for studying rust?
Some (optionally) in print: * Rust in Action * Programming Rust * Hands-On Rust * Rust for Rustaceans
-
Give advice to a code illiterate to start learning
Game development though might be a harder place to start. You may find other more basic areas easier to get going. Though there is a good book on learning rust with game dev Hands on Rust that you might find enough.
-
The Rust Programming Book is not good for Beginners?
Other books/resources you might find helpful - Rust by example - a good compliment to The Book that shows concepts with examples. Though does not explain things as much. - Zero To Production In Rust - a look at webservers and taking them to production (still being written though) - Hands on rust - a look at introducing rust with gamedev. - Easy rust - Many more listed here
- Trying to decide a roadmap for becoming a Rust developer. / Good beginner projects to try?
-
Question about bracket-lib and how fonts and images are loaded
This is a beginner question. I'm following Hands-On Rust to build simple games. One thing that isn't clear to me so far is how `bracket-lib` actually load the fonts and image of different characters from a single PNG file. Is the PNG file segmented in certain pixel values so that `bracket-lib` could access each square of the image like an array? Does this mean that this PNG file must be always designed in specific ways? Thanks for helping!
-
Sharing Saturday #387
One year ago, I released the first beta for Hands-on Rust. What a wild and awesome ride it has been! The book has been on the publisher's best sellers list for 50 of the last 52 weeks, since the print edition came out it's been in Amazon's top 10-20 for "C Language" and sometimes "Game Development" most of the time. I had a "good grief, am I famous?" moment when a relative (who works for one of the huge American social media companies) sent me a pic showing Hands-on Rust sitting on his boss's desk.
command-line-rust
Posts with mentions or reviews of command-line-rust.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-04.
-
Best path to learn rust
You absolutely must write programs, preferably using tests to ensure you are creating correct and reproducible code. May I suggest starting with my book, Command-Line Rust (O'Reilly, 2022). All the code/data/tests are in https://github.com/kyclark/command-line-rust Note that there are branches showing how to use the 4.x version of clap (command-line argument parser) rather than the 2.33 that was current when the book was published.
-
How to start learning a systems language
I think the best way to start learning a programming language is to write lots of small programs that you probably already know. Rust is a perfect command-line language, so I think it makes sense to start by implementing simple programs like "head" and "grep." I also think one should always learn to write and run tests, so I present my GitHub repo of inputs and tests you might like to use to write 14 such standard Unix command-line utilities: https://github.com/kyclark/command-line-rust If you want guidance on the language, I wrote a book called Command-Line Rust (O'Reilly, 2022) that explains all this code. One caveat is that the "clap" (command-line argument parser) module was at 2.33 when I published but is now v4, so you should look at the appropriate branches for versions of the programs that use the "builder" and "derive" patterns for that module. Or just use any old command-line parser you like as there's no requirement to use "clap." Best of luck to you!
-
What is the best way to learn Rust from a complete beginner programmer?
You must write programs in a language in order to learn it. I also firmly believe that learning how to write and run tests is critical to learning any language. I wrote Command-Line Rust (O'Reilly, 2022) for the beginner (in Rust, at least) and with a focus on writing and testing small programs from very simple "Hello, world!" and getting increasingly more complex. You can look at https://github.com/kyclark/command-line-rust for the code/inputs/tests. Best of luck!
-
Questions about moving from Bash to Rust
Code for the above book
-
Stuck at 4.3 of the rust book. It's so hard for me.
I'm the author of Command-Line Rust (O'Reilly, 2022), which I wrote to introduce the language slowly to beginners by writing and testing short, focused programs. You can look over the code/tests/data at https://github.com/kyclark/command-line-rust. Note that there are branches that show the same programs using a more recent version of the "clap" crate.
- Disappointing experience with 'Command-Line Rust': Seeking more comprehensive Rust resources
-
How do i get started with rust as my first language. I need tips and useful advice from rustians thanks.
I wrote Command-Line Rust (O'Reilly, 2022) to guide beginners in the language. You are challenged to write small functions and programs using tests to verify that everything is correct. You can look over the code and tests at https://github.com/kyclark/command-line-rust. Best of luck in your journey!
-
Learning rust by example
Here are the example programs from my book, Command-Line Rust (O'Reilly, 2022), along with the input files and tests: https://github.com/kyclark/command-line-rust
-
How to Practice and Learn Rust for Production Level Code?
I like to suggest that students write programs they already know (or at least understand). For instance, you probably understand that head shows the first few lines of a text file, and you probably can already implement some version of that in one or two languages you know. Try that in Rust. I wrote 14 BSD/GNU command-line utilities in Rust for learning purposes. I wouldn't consider these high-performance/production programs as they are tailored to learning the language. I also stress how to test programs, so there are tests and inputs you can use to verify your programs match the output of the original programs (or you can modify these to suit your own tastes for how you would like them to work). https://github.com/kyclark/command-line-rust
-
Error handling in a CLI app
Here are some more examples you may or may not find useful: https://github.com/kyclark/command-line-rust I tend to have a main() that calls a library's run() function that returns a Result and then exit with a nonzero code and error message on a failure.
What are some alternatives?
When comparing HandsOnRust and command-line-rust you can also consider the following projects:
book - The Rust Programming Language
argparse - Argument Parser for Modern C++
rustrogueliketutorial - Roguelike Tutorial in Rust - using RLTK
code - Source code for the book Rust in Action
RustBooks - List of Rust books
libtcod-vcpkg-template - A template for C++17 libtcod projects. This template uses Vcpkg to fetch dependencies.
pico-args - An ultra simple CLI arguments parser.
arewegameyet - The repository for https://arewegameyet.rs
nextest - A next-generation test runner for Rust.
libtcod-ada - An Ada binding for the libtcod rougelike library
pipe-rename - Rename your files using your favorite text editor
HandsOnRust vs book
command-line-rust vs argparse
HandsOnRust vs rustrogueliketutorial
command-line-rust vs code
HandsOnRust vs RustBooks
command-line-rust vs book
HandsOnRust vs libtcod-vcpkg-template
command-line-rust vs pico-args
HandsOnRust vs arewegameyet
command-line-rust vs nextest
HandsOnRust vs libtcod-ada
command-line-rust vs pipe-rename