3 ms·
I bet pretty much everyone would have a correct mental model of assignment if the problem was stated like that. Try this experiment with five people at a publi
by patio11 15y ago
I bet pretty much everyone would have a correct mental model of assignment if the problem was stated like that.
Try this experiment with five people at a public place, say exactly what you said, and give them exactly one try at the correct answer. I'll give $10 to charity for each one that getes it right. If all five of them get it wrong, you owe me an upvote.
(Fair warning, the terms of this bet are ridiculously unfair to you.)
- vibrunazo 15y agoMy bet is on lutorm, the point is that the original questions are ambiguous and if you remove some of the ambiguity you increase the chances of someone getting it right. My theory is that those who got it right (at least most of them) didn't get it because they "formed a consistent model". But simply because they made the same assumptions people before them did when creating the language. But of course, would need more data to be more sure of anything.
- mentat 15y agoI explained this to some as, "values from from right to left across the equals sign. In this case 10 flows into a, 20 flows into b, then the value of b, 20, flows into a, making a 20 and b 20." I think it's a matter of saying what '=' means in words that people can understand since it doesn't mean '=' in the mathematically sense (which is '==' or '===' depending on language).