- 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.
- 亮劍.NET:.NET深入體驗(yàn)與實(shí)戰(zhàn)精要
- 大數(shù)據(jù)專業(yè)英語(yǔ)
- 人工智能與人工生命
- Visual C++編程全能詞典
- 精通數(shù)據(jù)科學(xué):從線性回歸到深度學(xué)習(xí)
- 人工智能:智能人機(jī)交互
- 案例解說(shuō)Delphi典型控制應(yīng)用
- 計(jì)算機(jī)辦公應(yīng)用培訓(xùn)教程
- ASP.NET學(xué)習(xí)手冊(cè)
- 服務(wù)器配置與應(yīng)用(Windows Server 2008 R2)
- 仿龜機(jī)器人的設(shè)計(jì)與制作
- Learning Pentaho Data Integration 8 CE(Third Edition)
- MATLAB寶典
- Python Data Analysis
- 網(wǎng)絡(luò)管理自動(dòng)化