Flashcards
INTRO
Flashcards do conjunto (8)
- 1PROGRAMMING: It's like a cooking recipe. You are the computer (action) and the recipe (instructions) is the programmer (instructor).AUTHOR (recipe) -> INSTRUCTIONS ->
YOU READ -> THEN FOLLOW - 2PROGRAMMING is the mental process of thinking up instructions to give to a machine (like a computer).
- 3CODING: Is the process of transforming those ideas into a written lenguage that a computer will understand.Translate our lenguage into a very logical (literal-minded) lenguage.
So, we have to be VERY SPECIFIC.
HARDCODING: a value without assigning it to a variable - 4VARIABLES: A variable is a way of SAVING a piece of information with a specific name.By giving a value name, we can easily REUSE that value over and over again in our code.
- 5REPETITION: Is a very important programming tool that we can start using due the variables.Rather than writing out a piece of data every time we need it, we write it out once and the computer remembers it and can REPEAT that info back.
- 6REUSING VALUES IN VARIABLES: Variables allow us to easily REUSE VALUES in different parts of our code.When we reuse a value, it will appear in multiple places in our code. Re-typing that value becomes tedious (leading to errors) and without a variable name, it becomes unclear as to what the value REPRESENTS (and MAY TO represent)
- 7CHANGING THE VALUE OF A VARIABLE: The strong point of using a variable is that we can easly CHANGE THEIR VALUE, making our programs more flexible.one = 'forest'
or
one = 'lake' - 8VARIABLES: • Allow us to STORE info. • Allow us to quickly REUSE a value in our program. • Let us easily CHANGE a value in our program.