Mindmap
programming techniques hahahaaaaaaa... ;}
Inhalt der Mindmap
programming techniques hahahaaaaaaa... ;}
Variables are named locations in memory that are used to store temporary values that can change as the program is run. Constants are named locations in memory that are used to store values that do not change throughout the program's execution. The value stored by variable or constant can be set or recalled by using the identifier (name) of the variable. The process of setting a value to a variable or constant is called assignment
Choosing a suitable identifier: It is important that variable identifiers (names) are clearly descriptive of the data that they hold. For example, player_name is clearly going to be used to store the name of the player in a game. It would be perfectly possible to write x = "Mary", but it wouldn't be at all clear what the purpose of variable x is. Using sensible, clear and descriptive variable identifiers helps to ensure that code is easily understood by yourself and other developers and will reduce the need for documentation and the likelihood of making errors. If errors do appear, the code will be easier to understand and therefore the source of errors will be easier to identify and fix.
Informationen
- Beschreibung
- Mindmap am programming techniques hahahaaaaaaa... ;}, erstellt von Thomas Paterson am 26/02/2019.
- Erstellt von
- Thomas Paterson
- Aufrufe
- 0
- Bewertung
Mehr zu Variables, Constants and Data Types