I'm no expert in this or anything, but I have had to take computer programming classes for school.
Essentially, computer programming is typing and structuring terms and commands for a program to run through. There are different types of terms and commands to consider...but first, you have to define your term. The exact syntax will differ from programming language to language, but universally it comes down to introducing a term, and defining it within your program. Then you may want to offer a display for the user to interact with. Depending on the program, this can be a question with a blank for the answer, or a scroll menu to answer, perhaps even a visual display with a movable character (like within a video game :O) and depending on what option is chosen, your program will execute a command that was encoded. What I just described is commonly referred to as a logic gate. You can use different types. Mostly, you set it up like this...
display.program["Would you like to continue?"]
IF[REPLY = "yes" ]
THEN[display.program["You have chosen to continue. Would you still like to continue?"]
IF[REPLY = "yes" ]
THEN[LOOP[display.program["You have chosen to continue. Would you still like to continue?"]
ELSE[display.program["Good-bye!"]
ELSE[display.program["Good-bye!"]
What I just typed out is the relative structure for syntax of a program that just asks you if you'd like to continue until you answer "no." Now this is extremely rudimentary programming involving IF and ELSE statements and even a LOOP command within the logic gate. There are many other types of command structures that carry out different functions and also different types of variables and replies. For example, if you make use of "Boolean Logic" you may have to consider if a reply is THIS and THAT, THIS or THAT, or neither THIS nor THAT-and much like the IF and ELSE structure I have typed above, there are commands executed depending on which of the replies is received at the logic gate. So an example would be if you have to have a certain item and talk to a certain person in a game before you can proceed, the game will not allow you through until those criteria are met. Notice also the indentation of the lines of code above...It's VERY VERY important to have them line up exactly and type exactly in the correct syntax, or your program wont compile (won't work, or even run.) Notice that the IFs and ELSEs are lined up vertically? It's because the IF is literally the opening, and the ELSE is the closing. This is why people refer to computers as having a binary code of 1s and 0s. The way these are structured needs to have a definite yes or no, or, 1 or 0 to proceed in the way encoded. Computers can not recognize what you meant, or understand that you just missed a period or whatever else may come up in typing, so it just wont compile-and that can be soooo frustrating. Pretty much, it's quite tedious and you really have to cross your T's and dot your I's.
These structures can get very long and very complicated, depending on what your program is designed to do, but overall what I just described is computer programming and computer science in a nut shell.
I'm no expert in this or anything, but I have had to take computer programming classes for school.
Essentially, computer programming is typing and structuring terms and commands for a program to run through. There are different types of terms and commands to consider...but first, you have to define your term. The exact syntax will differ from programming language to language, but universally it comes down to introducing a term, and defining it within your program. Then you may want to offer a display for the user to interact with. Depending on the program, this can be a question with a blank for the answer, or a scroll menu to answer, perhaps even a visual display with a movable character (like within a video game :O) and depending on what option is chosen, your program will execute a command that was encoded. What I just described is commonly referred to as a logic gate. You can use different types. Mostly, you set it up like this...
display.program["Would you like to continue?"]
IF[REPLY = "yes" ]
THEN[display.program["You have chosen to continue. Would you still like to continue?"]
IF[REPLY = "yes" ]
THEN[LOOP[display.program["You have chosen to continue. Would you still like to continue?"]
ELSE[display.program["Good-bye!"]
ELSE[display.program["Good-bye!"]
What I just typed out is the relative structure for syntax of a program that just asks you if you'd like to continue until you answer "no." Now this is extremely rudimentary programming involving IF and ELSE statements and even a LOOP command within the logic gate. There are many other types of command structures that carry out different functions and also different types of variables and replies. For example, if you make use of "Boolean Logic" you may have to consider if a reply is THIS and THAT, THIS or THAT, or neither THIS nor THAT-and much like the IF and ELSE structure I have typed above, there are commands executed depending on which of the replies is received at the logic gate. So an example would be if you have to have a certain item and talk to a certain person in a game before you can proceed, the game will not allow you through until those criteria are met. Notice also the indentation of the lines of code above...It's VERY VERY important to have them line up exactly and type exactly in the correct syntax, or your program wont compile (won't work, or even run.) Notice that the IFs and ELSEs are lined up vertically? It's because the IF is literally the opening, and the ELSE is the closing. This is why people refer to computers as having a binary code of 1s and 0s. The way these are structured needs to have a definite yes or no, or, 1 or 0 to proceed in the way encoded. Computers can not recognize what you meant, or understand that you just missed a period or whatever else may come up in typing, so it just wont compile-and that can be soooo frustrating. Pretty much, it's quite tedious and you really have to cross your T's and dot your I's.
These structures can get very long and very complicated, depending on what your program is designed to do, but overall what I just described is computer programming and computer science in a nut shell.