This commit is contained in:
2021-12-20 15:50:03 +01:00
commit 36fe7cf4a7
6 changed files with 41 additions and 0 deletions

21
README.md Normal file
View File

@@ -0,0 +1,21 @@
# How to use this repo
Go through the markdown files in order, building the things described in them.
Once you've successfully built a thing and made it run, _delete_ it and build something else! In this way you'll build muscle memory with the language.
# Where's the content from?
So far it's all either from these three sources,
- [The Rust Book](https://doc.rust-lang.org/book/)
- [Hands-On Rust](https://pragprog.com/titles/hwrust/hands-on-rust/)
- [Programming Rust](https://www.oreilly.com/library/view/programming-rust-2nd/9781492052586/)
or something I've made up.
# Organizational Note
The chapter numbers on the markdown files are somewhat approximate. The "fractional" chapter numbers are meant to indicate that the material is somewhere between the Rust Book chapters and may not at all emanate from that book.
I should probably just put these on Exercism and delete the repo, but :man_shrugging:

4
ch1.1.md Normal file
View File

@@ -0,0 +1,4 @@
write a function that prompts the user for their name and says hello
write a function that prompts a user for a number, add 2 to it, then print the sum
write a function that compares a number input by the user to 10
write a function that generates a random number

1
ch1.2.md Normal file
View File

@@ -0,0 +1 @@
Use `env` to collect arguments from the caller of a CLI, maybe for determining which numbers are odd.

5
ch1.md Normal file
View File

@@ -0,0 +1,5 @@
- [ ] make a project "hello"
- [ ] create a source file to print "hello world"
- [ ] check your code
- [ ] build your code
- [ ] run your code

6
ch2.md Normal file
View File

@@ -0,0 +1,6 @@
Implement a classic beginner programming problem: a guessing game.
- [ ] generate a random integer between 1 and 100
- [ ] prompt the player to enter a guess
- [ ] after a guess is entered, indicate whether the guess is too low or too high
- [ ] elseif the guess is correct, print a congratulatory message and exit

4
ch3.md Normal file
View File

@@ -0,0 +1,4 @@
Assign the result of a loop to a var.
Convert temperatures between Fahrenheit and Celsius.
Generate the nth Fibonacci number.
Print the lyrics to the Christmas carol “The Twelve Days of Christmas,” taking advantage of the repetition in the song.