News for hackers. Stuff that matters.
Re:How high school students start thinking about code by erlanger on Sunday July 05, 2009 @09:51PM (#688966)
7th grade, TI-BASIC. That's what got it started for me. The book that came with the TI-83 had a little chapter on the built-in language and I ran with it. No student with any knowledge of algebra and symbolic mathematics should be making these errors (shown in the article) with named arguments though...that's just weird. Who sees "0 = x" in class?
Re:How high school students start thinking about code by TravisLS on Sunday July 05, 2009 @10:34PM (#689021)
Thanks for the flashback. I wonder how many HN members got started on their TI-83. I remember even the most remedial users figuring out how to store enough data to cheat in pre-calc. IMO, the language is less relevant, it just takes a project.
Re:How high school students start thinking about code by rottencupcakes on Sunday July 05, 2009 @11:01PM (#689055)
The first real applications I ever wrote were TI-Basic apps I wrote for my TI-89 back in Algebra class.

I remember coding them directly with the keyboard on the calculator. I wrote all kinds of things, things to help me solve things, solve equations, geometry solvers, games. It was a blast, and I think that's what got me interested in programming.

Thanks TI! Maybe Middle Schools should work on developing an introductory programming curriculum to introduce kinds to the idea of programming. It's probably more important then most things middle schoolers are learning, especially considering I probably spent so much of my time in math class programming my calculator.

Re:How high school students start thinking about code by erlanger on Sunday July 05, 2009 @11:54PM (#689108)
As far as serious work goes, I only got as far as really simple stuff to take care of the quadratic formula, etc. I was all about the text adventure back then (slow, memory-leaking DrugWars-style game, but people liked it!).
Re:How high school students start thinking about code by mahmud on Sunday July 05, 2009 @10:59PM (#689051)
I do. But then, I learned my arithmetic in arabic ;-)

(OT: I can also write mirror-text at my natural hand-writing pace, and often get the order of drawing individual glyphs "wrong"; I might, for example, make a dot first then a vertical bar to wite an 'i'. The occassional "russian" backward or upside down letter creeps in when I am tired, etc.)

Re:How high school students start thinking about code by kylec on Sunday July 05, 2009 @10:18PM (#689001)
I actually think that this rule/convention of having the value on the right and location on the left is a little arbitrary and potentially confusing. To someone that's learning to program, you're putting something that comes after (the assignment) before something that comes before (computation of the value to assign) can be counterintuitive.

Once you get used to it you stop thinking about it, but it's important to realize that this concept isn't as intuitive as it may appear.

Oh, and you didn't ever use the store arrow key (STO->) on your TI-83 to store a value? With this operation the variable goes on the right of the expression, not the left.

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.