News for hackers. Stuff that matters.
Re:Coding Horror: Separating Programming Sheep from Non-Prog... by gioele on Friday January 27, 2012 @05:04PM (#3520385)
> The example of "mental model of assignment" is ridiculous. a=b can mean whatever. It means something totally different to a mathematician than a programmer.

> "The piece of paper on the left says dog and the piece of paper on the right says cat.

We are talking about university students. I think they all have had a bit of calculus. That they had to "find the x" or "give the value of y = 1/(3/x) to the third decimal when 1) x = 3, 2) x = 5".

If your 18-year old students need to be told of "dog" and "cat" on pieces of paper in order to understand the most basic abstraction that math has, well, you, as a teacher, will find big difficulties ahead.

Re:Coding Horror: Separating Programming Sheep from Non-Prog... by Geee on Friday January 27, 2012 @09:00PM (#3521084)
This is exactly the problem here. If you show a=1+1; b=3; a=b; to someone with math background, their brain will most likely explode, because they'll think that every equality has to hold at the same time.

Also I think it's impossible to hold a consistent mental model (whatever it is) if people can't form a logic behind the operation.

Re:Coding Horror: Separating Programming Sheep from Non-Prog... by roguecoder on Friday January 27, 2012 @05:50PM (#3520568)
but algebra is specifically non-directional. If I saw "a=10 b=20 a=b" as a non-programming, I'd assume the answer was "not possible".