You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this point the book, you haven’t dealt with compiler optimisations. Any experienced person could expect this code to be optimised out. You use a wrong answer as a teachable moment - that’s not good teaching if you haven’t already taught the subject.
This is the most complicated subject in Rust, it seems to me from what I read around the subject - I’ve already read the print book (2021) chapter once and I’m on my second* go around the interactive version - I don’t need a trick question at this point.
I got to the end of chapter 8, before the second ownership inventory, and was still making ownership mistakes, so I went back to chapter 4.
Suggested fix:
Use a random number generator or ask the user for input.
Note:
Overall, I like the new permissions-based approach in the interactive version - I’ve found it really helpful, having already read the print version. But even having read both, I was still only getting about 50% of the questions. The ones that ask what the Rust doesn’t do have been particularly troublesome, e.g. question 4 in this block.
The text was updated successfully, but these errors were encountered:
main
branch to see if this has already been fixed, in this file:URL to the section(s) of the book with this problem:
https://github.com/cognitive-engineering-lab/rust-book/blob/main/quizzes/ch04-01-ownership-sec2-moves.toml
Description of the problem:
At this point the book, you haven’t dealt with compiler optimisations. Any experienced person could expect this code to be optimised out. You use a wrong answer as a teachable moment - that’s not good teaching if you haven’t already taught the subject.
This is the most complicated subject in Rust, it seems to me from what I read around the subject - I’ve already read the print book (2021) chapter once and I’m on my second* go around the interactive version - I don’t need a trick question at this point.
Suggested fix:
Use a random number generator or ask the user for input.
Note:
Overall, I like the new permissions-based approach in the interactive version - I’ve found it really helpful, having already read the print version. But even having read both, I was still only getting about 50% of the questions. The ones that ask what the Rust doesn’t do have been particularly troublesome, e.g. question 4 in this block.
The text was updated successfully, but these errors were encountered: