Re-learning to program, day four, plus recap
Today:
- Completed “mad_libs” exercise from Exercises for Programmers. Solution here: https://gist.github.com/Najaf/07bae4ddca27666c2abe9faea10675f2
Recap of week 1
This week I got started on learning Rust for real. The going has been slow but consistent. I’m hesitant to jump into more difficult exercises. This is because I’ve only got about 10–15 minutes per day to do this and I don’t want to get into ownership/borrowing/lifetime hell if I can avoid it.
Last week I skimmed the parts of the Rust documentation, worked through four of the exercises from Exercises for Programmers, and wrote myself a syllabus to work from.
Next week I want to:
- Fill out the syllabus a bit more.
- Read the sections in the documentation about ownership, borrowing, and lifetimes again.
- Work through five or six more exercises from Exercises for Programmers.
A stretch goal might be to do a bit more reading of the documentation, particularly around basic data structures (maps, lists, etc), but I’d be happy if I recap ownership. It’s the hardest thing in Rust and I’m probably going to need multiple runs at it.