[Language idea] Personify the compiler #3450
ConsciousCode
started this conversation in
Large Projects & Plans
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
I quite like this idea, perhaps instead of the current symbol we use in alerts and error messages, we can add the icon of a robot? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Specifically in the error messages, especially for earlier levels, I could see personification of the compiler as being an effective anchor for "why" certain things aren't allowed.
For instance, "The code you entered is not valid Hedy code. There is a mistake on line 3, at position 18. You typed a comma, but that is not allowed." is a very technical and impersonal description. Much more descriptive than normal compiler messages, but my first thought when reading that is that many kids will wonder "why isn't it allowed?"
On one hand that can be a gentle introduction to how languages have hundreds of grammar rules which you may not know when you first start, but on the other hand imagine an alternative - personify the compiler as some kind of silly robot that can't understand conversational language very well. Then, eg it isn't that the comma isn't "allowed", but the robot is confused by the comma and doesn't know what it means.
This could serve as a gentle introduction to the idea that the compiler only knows a very restrictive grammar and it isn't enough to be "close enough", and it acts as a kind of empathic game to write the code in a way the silly robot understands.
Beta Was this translation helpful? Give feedback.
All reactions