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'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.