- Practical Network Automation
- Abhishek Ratan
- 199字
- 2021-07-02 15:21:52
Variables
These are predefined, human-readable, and understandable words or letters that are used to store some values. At the very basis of writing a program we need a variable in which we will store the data or information, and based upon the variables, we can further enhance the programming logic. As we can see in the first line, an important part of creating a variable is that it should be human-readable and understandable.
Let us take an example: Suppose I want to store a number 2 in a variable. We can choose any name for a variable and define it:
Option 1: x=2
Option 2: number=2
The correct answer will be Option 2, as we know by the variable name (number) that this variable contains a specific number. As we can see in the preceding example, if we keep on using random ways of defining variables as we would when creating a big program, the complexity would be increased substantially because of the unclear meanings of the variables.
Different programming languages have different ways to define a variable, but the underlying concept of ensuring a variable is human-readable should be the top-most priority of the programmer or program author.
- 中文版Photoshop CS5數(shù)碼照片處理完全自學(xué)一本通
- 基于LabWindows/CVI的虛擬儀器設(shè)計與應(yīng)用
- 反饋系統(tǒng):多學(xué)科視角(原書第2版)
- Effective DevOps with AWS
- Supervised Machine Learning with Python
- Windows內(nèi)核原理與實現(xiàn)
- AWS Administration Cookbook
- 數(shù)據(jù)庫系統(tǒng)原理及應(yīng)用教程(第5版)
- MATLAB/Simulink權(quán)威指南:開發(fā)環(huán)境、程序設(shè)計、系統(tǒng)仿真與案例實戰(zhàn)
- 大數(shù)據(jù)技術(shù)基礎(chǔ):基于Hadoop與Spark
- Citrix? XenDesktop? 7 Cookbook
- 計算機(jī)組成與操作系統(tǒng)
- Python文本分析
- 計算機(jī)應(yīng)用基礎(chǔ)實訓(xùn)·職業(yè)模塊
- 機(jī)器人制作入門(第4版)