HACKER Q&A
📣 mandown2308

Was Programming Intuitive to You?


Was Programming Intuitive to You?


  👤 ajuc Accepted Answer ✓
The main obstacle for me was understanding variables and "=" operator. It wasn't immediately obvious to me what happens to variables in a "for" loop for example.

I knew you can count up thanks to it, but I had no mental model of step-by-step execution and variables changing values, so I couldn't predict how this will behave:

   FOR X = 1 TO 10
   Z = Y
   Y = X + 1
   PRINT Z
   NEXT X
It probably didn't helped that I only knew Polish at that time and BASIC was in English and the manual for my C64 was in German :)

So I mostly typed in the programs from that manual to see what happens and played with the numbers there to see what changes. Some programs I never got to work - for example the one with sprites. The whole thing with programming for me was to make my own games so I was pretty devastated by that, and it was before anybody had internet so I was stuck :)

Then I got a PC and Turbo Basic (and later Turbo Pascal). And a book about Turbo Pascal in Polish - and then I really understood most of the concepts in programming - user defined functions and procedures, recurrence, dynamic memory, pointers, data structures, etc.

After that each next language was just a little different from the previous one so it was pretty easy.


👤 nhgiang
For me, the intuition stops at tree and graph. Anything more complicated (probability, matrix, etc.), I need a reference every time I work with.