Emile comments on Checking for the Programming Gear - Less Wrong

5 Post author: MBlume 08 September 2012 08:38PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (53)

You are viewing a single comment's thread. Show more comments above.

Comment author: kilobug 10 September 2012 08:05:12AM 2 points [-]

I did teach Python at a computer science school (people there already had 2 years of scientific studies after "bac"), and I was amazed to see how hard it was for some of them to understand that in Python :

>>> 4+2
6
>>> "4"+"2"
'42'

So yes, I guess the key is about understanding what types are. The same kind of issues arise between using a variable and the variable name.

Now, I'm not sure how much this is teachable and when (ie, maybe it's a kind of skill you've to learn when you're young to really grasp). I started programming when I was 11, so there may be something around it, but I don't have much data on that.

Comment author: Emile 12 September 2012 02:50:23PM 2 points [-]

Couldn't you lead them to guess by themselves, by asking them to guess the result of a series of expressions like:

4+2

"Hel" + "lo"

"Di" + "Caprio"

"Jack" + "Black"

"Jack" + " Black"

"ABCD" + "EFGH"

"1234" + "5678"

Comment author: ESRogs 27 June 2013 09:51:51PM 0 points [-]

Maybe insert an "ABCD" + "1234" in between your last two expressions.