News for hackers. Stuff that matters.
Re:Camels and humps: a retraction [pdf] by x1798DE on Sunday July 20, 2014 @10:03AM (#8060307)
It's been maybe 15 or so years, so I'm similarly pretty far down the rabbit hole, but I definitely remember having a lot of trouble with:

  x = x + 1
At the time, it seemed patently obvious that it was a false statement, because there is no single value of x for which this is true.

If the situations are analogous, my guess would be that you would assume that each of these statements is an assertion, and that at least one of them must be false. Intuitively, I'd guess that it's the last one that people would assume would be false, because as you're reading from top to bottom, you've already "accepted" the first two.

Re:Camels and humps: a retraction [pdf] by Lerc on Sunday July 20, 2014 @05:07PM (#8061512)
When teaching JavaScript to Kids about 10 years old. I tend to use x+=1 over x=x+1.

It seems to be much easier for people to attach the new construct += to to a new idea. I don't bring in the x=x+1 form until they have had plenty of use assigning other expressions to x. Kids don't seem to have any problem with x=y+1. They just need a little time for that idea to set properly before they start mixing things up.

Re:Camels and humps: a retraction [pdf] by demallien on Sunday July 20, 2014 @12:05PM (#8060632)
X = infinity?
Re:Camels and humps: a retraction [pdf] by cbd1984 on Sunday July 20, 2014 @08:34PM (#8062051)
Depending on what you mean by "infinity", sure:

If you take it to mean "The cardinality of an infinite set", "X + 1" to mean "The set X with one more element added to it", and "X = Y" to mean "X and Y have the same cardinality", then "X = X + 1" is entirely true.

Mathematics, like programming, is ultimately founded on definitions.

Re:Camels and humps: a retraction [pdf] by tinco on Sunday July 20, 2014 @12:13PM (#8060684)
I don't think infinity equals infinity. Not in the general mathematical sense anyway.