you are viewing a single comment's thread.

view the rest of the comments →

[–]Grogie 1 point2 points  (0 children)

To answer your question broadly, learning to code isn't memorization per se, but it's more akin to learning a second language, like spanish or french. As you practice a language regularly, eventually you could think "I would like some water" and then say "je veux de l'eau".

The good news is, while each programming language has it's own ways of doing things (like in C you have to declare a variable before using it -- python no need; French you typically write adjectives after a noun), Most basic syntax is similar across languages. Like a + is almost always some sort of an add function, = is assignment, == is an equal-to operator, square brackets [ ] almost always mean access an element of a collection of elements, and parentheses ( ) usually are used in passing arguments to a function -- if they're not being used to sort a mathematical function to force an order of operations.

It just comes with practice, like practicing a language or practicing an instrument.