I made a mistake in fizzbuzz the first time I did it on a whiteboard because I wrote it in "pseudocode"
I wrote if (n % 15) print "fizzbuzz" ...
I got away with it because my interviewer assumed it was some kind of shell which means 0 is true
I should have written n % 15 == 0 to be absolutely clear what I'm doing
note that in Rust this won't even compile:
3 | if n % 15 {
| ^^^^^^ expected `bool`, found integer
But I don't have the type checker to find mistakes for me when writing on a whiteboard which is not realistic. I can't commit this code because CI wouldn't merge a build failure anyway