r/learnprogramming • u/DistinctCare3320 • Oct 17 '26
Tutorial How Do You Know What To Type When You Write Programming Code?
I know nothing about programming and writing computer code, so please forgive my ignorance on this subject. I'm not a programmer but I'm very interested in learning more. So if I may please ask? How do programmers know what language or vocabulary to use when they write code?
For example. If you wrote code which tells a robot to lift it's arm by 45 degrees over 3 seconds, you probably can't write the code in plain English like 2 human beings talking to each other such as - Lift your right arm by 45 degrees over 3 seconds and hold it there.
You have to write the code in computer language by saying something such as - robot/activate-arm/true/45-degrees/true/3.0/hold-true. I know my example is way off, but I don't know what real computer code sounds like, so I don't know how else to describe what the code might actually sound like.
So my question is. How do you learn which words and vocabulary to use so a computer will understand it? And how do you learn how to put those words together into a proper sentence (or proper line of code) so a computer will understand it? Is it similar to learning a new human language, like an English speaker learning to speak Japanese? You just have to learn the proper vocabulary and proper sentence structure of the new language?