News for hackers. Stuff that matters.
Re:How high school students start thinking about code by krakensden on Sunday July 05, 2009 @09:54PM (#688971)
In algebra class, the order doesn't matter, because you're never doing assignment operations, you're just figuring out equality.

= vs == strikes again.

Re:How high school students start thinking about code by weaksauce on Sunday July 05, 2009 @10:01PM (#688979)
While true, in algebra x=0 and 0=x are equivalent, the convention that the teachers teach is to have the dependent variable on the left.
Re:How high school students start thinking about code by swolchok on Monday July 06, 2009 @12:30AM (#689156)
I remember in sixth grade when they revealed to us that "3 \cdot a" and "3a" were additional notations for "3 x a" (three times a) and encouraged use of those notations on homework, I happily wrote "a3" as well because multiplication is commutative.
Re:How high school students start thinking about code by erlanger on Sunday July 05, 2009 @10:16PM (#688997)
A simple example would be a fifth-grade teacher testing on the pythagorean theorum. I think the problem would always be worded (assuming no diagram)

    a = 3
    b = 4
    c = ?
Granted, this is one person's experience, but I never recall a variable's value being presented as

    3 = a
Re:How high school students start thinking about code by DougBTX on Monday July 06, 2009 @03:08AM (#689273)
True, the dependent variable should be on the left. Sometimes it matters less, for example to express that two sides have the same length, a = b and b = a would both be acceptable.

Possibly more important, you would never see:

  a = 3
  a = 4
Begs the question: which is it, 3 or 4? Or does 3 = 4 too? Just a reminder that the operators really are equality, not assignment.