Rust exercises from my university course
I’m still recovering from the most hectic semester of my life1, so I wasn’t yet able to push out the several blog posts that I have in the pipeline. So this is just a short post in which I wanted to share a bunch of Rust exercises that I created during the first run of a Rust university course that I was teaching at my university this semester.
You can find the exercises here. The repository also contains a link to a YouTube playlist containing recordings of my lessons, but they are in the Czech 🇨🇿 language, so they are mostly only useful to people from my country :)
Each exercise has a short description, sometimes a piece of bootstrap code, and also a set of unit tests that should test the correctness of the solution. Creating the exercises took an extreme amount of time, easily more than one hundred hours total. It takes some time to think of a good/interesting topic, write a reference implementation, write a set of unit tests, think about various approaches that students could use and add more tests e.g. to make sure that a naïve solution won’t work, make sure to guide the students to avoid pitfalls, etc. But it’s also a lot of fun :) …when you don’t have to do it 10 weeks in a row on a just-in-time basis. Yeah, that part was not ideal.
One of the exercises, called Memory map, was based on a real-world data structure that I implemented for a cool project that I somehow squeezed into my very busy schedule this autumn. I’m planning to write a (hopefully interesting) blog post about it in the (near-ish) future, so stay tuned :)
Anyway, that’s all I wanted to share. If you have any feedback regarding the exercises or want to suggest any improvements or fixes, feel free to open an issue or send a PR on GitHub.