So how the heck do you explain this?
-
My son and I often have interesting discussions. Last night was no exception. So I being the geek I am often try to steer the discussion to programming and logic problems. Yesterday we were discussing variable assignments. Something I have notice with other "normal" people. My son is fairly normal even after my influence. (Must be mom). So I as talking about let a=2 and let b=3 So if we add a to b we get what? responses from son ranged from "ab" or "c" I then went into the whole memory address thing where a is just a name for a pointer to a memory address area where the value of "a" is stored. Soon as I asked for the value of "a". His response. "The value of "a" is always "a" right?" *sigh* no "a" is just the name for the pointer to the memory the variable name we use for then storing that value we will use later. "Well why not just type in 2+3 if you are going to add 2 and 3 together?" Ideas? I didn't get anywhere.
To err is human to really mess up you need a computer
Perhaps a DNA test ?
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"As far as we know, our computer has never had an undetected error." - Weisert
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
-
It works well - but with young kids you can make it easier if you use bags of sweets. "I've got 2 sweets in this bag, and 3 sweets in this bag - how many sweets have I got?" It kinda focusses them on the content rather than the bag. Greedy little swine that they are... :laugh:
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
Sweets easier. How long was it since you handled kids? The answer is four sweets, uhm I mean three sweets...
Wrong is evil and must be defeated. - Jeff Ello
-
Sweets easier. How long was it since you handled kids? The answer is four sweets, uhm I mean three sweets...
Wrong is evil and must be defeated. - Jeff Ello
Hey - I'm holding the bags, and I'm taller than they are! (And I can eat sweeties faster it I want to...)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
Yes, and if you use a mix of apples, lemons, oranges, etc. you can refer to it all as "fruit" and then go on to talk about class inheritance and so on... Brilliant!
- I would love to change the world, but they won’t give me the source code.
Forogar wrote:
es, and if you use a mix of apples, lemons, oranges, etc. you can refer to it all as "fruit" and then go on to talk about class inheritance and so on... Brilliant!
Hah! That is brilliant! I hadn't thought of that. :) Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
-
My son and I often have interesting discussions. Last night was no exception. So I being the geek I am often try to steer the discussion to programming and logic problems. Yesterday we were discussing variable assignments. Something I have notice with other "normal" people. My son is fairly normal even after my influence. (Must be mom). So I as talking about let a=2 and let b=3 So if we add a to b we get what? responses from son ranged from "ab" or "c" I then went into the whole memory address thing where a is just a name for a pointer to a memory address area where the value of "a" is stored. Soon as I asked for the value of "a". His response. "The value of "a" is always "a" right?" *sigh* no "a" is just the name for the pointer to the memory the variable name we use for then storing that value we will use later. "Well why not just type in 2+3 if you are going to add 2 and 3 together?" Ideas? I didn't get anywhere.
To err is human to really mess up you need a computer
It might be time to try the Father Ted "small cow and far away cow" test. It always gets me and if he passes it he's probably fine.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
-
as a father of three I don't disagree with this statement. But having good discussions with your children is a better teaching environment than they can ever get in school. My kids learn far more at home from Mom and I than they do at school. You as the parent are the best and most important instructor your child shall ever have. Fun discussions with my children are the best part of raising them. Watching them grow and learn is amazing.
To err is human to really mess up you need a computer
rnbergren wrote:
You as the parent are the best and most important instructor your child shall ever have.
So then why are you sending them to (public) school? :confused:
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
My son and I often have interesting discussions. Last night was no exception. So I being the geek I am often try to steer the discussion to programming and logic problems. Yesterday we were discussing variable assignments. Something I have notice with other "normal" people. My son is fairly normal even after my influence. (Must be mom). So I as talking about let a=2 and let b=3 So if we add a to b we get what? responses from son ranged from "ab" or "c" I then went into the whole memory address thing where a is just a name for a pointer to a memory address area where the value of "a" is stored. Soon as I asked for the value of "a". His response. "The value of "a" is always "a" right?" *sigh* no "a" is just the name for the pointer to the memory the variable name we use for then storing that value we will use later. "Well why not just type in 2+3 if you are going to add 2 and 3 together?" Ideas? I didn't get anywhere.
To err is human to really mess up you need a computer
Perhaps you should put off this sort of discussion until after his third birthday. ;)
Will Rogers never met me.
-
My son and I often have interesting discussions. Last night was no exception. So I being the geek I am often try to steer the discussion to programming and logic problems. Yesterday we were discussing variable assignments. Something I have notice with other "normal" people. My son is fairly normal even after my influence. (Must be mom). So I as talking about let a=2 and let b=3 So if we add a to b we get what? responses from son ranged from "ab" or "c" I then went into the whole memory address thing where a is just a name for a pointer to a memory address area where the value of "a" is stored. Soon as I asked for the value of "a". His response. "The value of "a" is always "a" right?" *sigh* no "a" is just the name for the pointer to the memory the variable name we use for then storing that value we will use later. "Well why not just type in 2+3 if you are going to add 2 and 3 together?" Ideas? I didn't get anywhere.
To err is human to really mess up you need a computer
Looks like he could have a bright future in customer support.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
I'm at the same stage - I try to explain things in terms of "boxes". Box "a" contains two items, box "b" contains three items, how many items have I got if I add what's in box "a" to what's in box "b"? Pointers and memory addresses are a future topic :laugh:
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
Brent Jenkins wrote:
Box "a" contains two items, box "b" contains three items, how many items have I got if I add what's in box "a" to what's in box "b"?
Some beans[^]. :-D
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Brent Jenkins wrote:
Box "a" contains two items, box "b" contains three items, how many items have I got if I add what's in box "a" to what's in box "b"?
Some beans[^]. :-D
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
I'm at the same stage - I try to explain things in terms of "boxes". Box "a" contains two items, box "b" contains three items, how many items have I got if I add what's in box "a" to what's in box "b"? Pointers and memory addresses are a future topic :laugh:
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
Try it again: Box "a" contains two items cats, box "b" contains three items mice, how many items have I got if I add what's in box "a" to what's in box "b"?
-
Try it again: Box "a" contains two items cats, box "b" contains three items mice, how many items have I got if I add what's in box "a" to what's in box "b"?
-
Still five items. Both are probably derived from "animal" which is derived from "object" anyway :laugh:
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
-
Probably the three smaller items will be integrated with the two larger items if you put them together. Would you still call it five items after the integration process is completed?
-
This whole thread explains what's wrong with programmers and why so many projects go belly up :laugh:
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
Why not take it one step further: You put two cat items and three mice items into a closed box with no way to inspect the interior. Once you have closed and sealed the box, you will be unable to determine the total number of items in the box at any given time, until you break the seal. If Schrödinger had designed sucn an experiment, he probably would have suggested two large dog items and three kitten items - rumours are that he wasn't very much in favor of protecting cats from harm.
-
Why not take it one step further: You put two cat items and three mice items into a closed box with no way to inspect the interior. Once you have closed and sealed the box, you will be unable to determine the total number of items in the box at any given time, until you break the seal. If Schrödinger had designed sucn an experiment, he probably would have suggested two large dog items and three kitten items - rumours are that he wasn't very much in favor of protecting cats from harm.
-
My son and I often have interesting discussions. Last night was no exception. So I being the geek I am often try to steer the discussion to programming and logic problems. Yesterday we were discussing variable assignments. Something I have notice with other "normal" people. My son is fairly normal even after my influence. (Must be mom). So I as talking about let a=2 and let b=3 So if we add a to b we get what? responses from son ranged from "ab" or "c" I then went into the whole memory address thing where a is just a name for a pointer to a memory address area where the value of "a" is stored. Soon as I asked for the value of "a". His response. "The value of "a" is always "a" right?" *sigh* no "a" is just the name for the pointer to the memory the variable name we use for then storing that value we will use later. "Well why not just type in 2+3 if you are going to add 2 and 3 together?" Ideas? I didn't get anywhere.
To err is human to really mess up you need a computer
When you go on to constant declarations, you may pick up some hints from the famous Xerox Fortran programming manual (in Fortran, constants are defined by DATA statements), to explain the rationale behind named constants: The primary purpose of the DATA statement is to give names to constants; instead of referring to PI as 3.141592653589797, at every appearance, the variable PI can be given that value with a DATA statement, and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of PI change.
-
My son and I often have interesting discussions. Last night was no exception. So I being the geek I am often try to steer the discussion to programming and logic problems. Yesterday we were discussing variable assignments. Something I have notice with other "normal" people. My son is fairly normal even after my influence. (Must be mom). So I as talking about let a=2 and let b=3 So if we add a to b we get what? responses from son ranged from "ab" or "c" I then went into the whole memory address thing where a is just a name for a pointer to a memory address area where the value of "a" is stored. Soon as I asked for the value of "a". His response. "The value of "a" is always "a" right?" *sigh* no "a" is just the name for the pointer to the memory the variable name we use for then storing that value we will use later. "Well why not just type in 2+3 if you are going to add 2 and 3 together?" Ideas? I didn't get anywhere.
To err is human to really mess up you need a computer
I would get two containers and label them a and b. Bowls, boxes, etc. Then I would say something like: Every day I am going to count the number of your toys that are in the living room. I will write that number on a slip of paper and put it in bowl a. Your Mom will count the number of toys in your room and write that number down on a slip of paper and put it in bowl b. So everyday I want to know the total. I could say add the number in bowl a to the number in bowl b but to make things simple I say a+b which means the same thing.
bleahy
-
My son and I often have interesting discussions. Last night was no exception. So I being the geek I am often try to steer the discussion to programming and logic problems. Yesterday we were discussing variable assignments. Something I have notice with other "normal" people. My son is fairly normal even after my influence. (Must be mom). So I as talking about let a=2 and let b=3 So if we add a to b we get what? responses from son ranged from "ab" or "c" I then went into the whole memory address thing where a is just a name for a pointer to a memory address area where the value of "a" is stored. Soon as I asked for the value of "a". His response. "The value of "a" is always "a" right?" *sigh* no "a" is just the name for the pointer to the memory the variable name we use for then storing that value we will use later. "Well why not just type in 2+3 if you are going to add 2 and 3 together?" Ideas? I didn't get anywhere.
To err is human to really mess up you need a computer
It's a developmental thing. I could not help my son when he was in first grade. It seemed he couldn't get anything. Then at 12 he got into a spot of bother and I took him to a night class I was taking. He sat at a computer next to me and said show me some C. I opened an IDE for him and showed him a couple of things, and went to my own work for the class. After a while he said look at this, and he ran a command line program he had written that prompted the user for a password, (hard coded), and did some small thing. He had never seen C code. He's a developer now. Take heart and let the kid grow.
-
My son and I often have interesting discussions. Last night was no exception. So I being the geek I am often try to steer the discussion to programming and logic problems. Yesterday we were discussing variable assignments. Something I have notice with other "normal" people. My son is fairly normal even after my influence. (Must be mom). So I as talking about let a=2 and let b=3 So if we add a to b we get what? responses from son ranged from "ab" or "c" I then went into the whole memory address thing where a is just a name for a pointer to a memory address area where the value of "a" is stored. Soon as I asked for the value of "a". His response. "The value of "a" is always "a" right?" *sigh* no "a" is just the name for the pointer to the memory the variable name we use for then storing that value we will use later. "Well why not just type in 2+3 if you are going to add 2 and 3 together?" Ideas? I didn't get anywhere.
To err is human to really mess up you need a computer