rust-lang / rustlings

:crab: Small exercises to get you used to reading and writing Rust code!
https://rustlings.cool
MIT License
54k stars 10.15k forks source link

The if2 exercise is confusing #2108

Closed senekor closed 1 month ago

senekor commented 1 month ago

I'm teaching a Rust course right now and I noticed that several people got hung up on this exercise. I know that the "fizz" and "foo" stuff isn't supposed to matter, but it's human nature to search for meaning in things. People were struggling to "turn off their brain" and just code against the tests.

I think it would be nice if the mapping from input to output values made at least some sort of sense. It doesn't have to be an elaborate story, just enough so people can focus on the Rust syntax as they are supposed to.

I'll try to come up with something suitable.

mo8it commented 1 month ago

I agree. Feel free to open a PR :D

I might review PRs related to exercises later, but they are welcome, especially if they are related to feedback from your course :)