BillO wrote:
sburrow wrote:
So, as Mike Barry was saying, this program will not give an error, ever. It will do what it thinks is best, even if that was not expected.
Chad
Interesting approach. It my make troubleshooting difficult for a child though.
In the end, you are right. Here's how I see it:
-We have veteran programmers who can figure it out without much help. Error messages are great, but not required.
-We have typical programmers who basically need error messages. Not saying they couldn't think themselves out of a wet paper bag, but they are dependent on these (new) resources.
-We have beginning programmers who (are being taught to) need error messages. They might not even know what the error message entirely means, but that something they did was wrong. Syntax vs. runtime isn't even a concept yet.
-We have four year olds, who literally cannot define what an 'error' even is. Errors are NOT necessarily "bad", like screaming for toys in dept stores or stealing a cookie. Errors are more like "oops". And, as this particular 4 year old's teacher, *I* am her error messages. I do this for her math lessons all the time: What is 8+9? Um... 12! No, are you guessing? Etc.
BTW, I made a quick BASIC program where it asked for the answer to two random numbers being added together. My daughter enjoyed it a lot! She did guess some times, and it would say "nope, the answer was X" but she would get a lot of them right. Then I changed the program to multiply two numbers together, and since then I've been working with her on multiplication concepts. So, it's not only for her learn programming (though that is the goal eventually) but also something for me to whip out a quick 'game' of sorts of her to learn/enjoy.
I asked my wife last week, "Should I make this BASIC the first thing that comes up on boot?" Granting that I explained what most of that meant, and the historical case for C64's and such booting to BASIC, she said, "Yes, do that." But then I explained the limitations of my BASIC interpreter, and what my alternative is right now. She quickly said, "Nevermind, all you did was make a toy! Stick with the original plan." It was funny to have my BASIC be called a toy. Because, it is.
Thanks everyone!
Chad