Programming beginners, when learning will always listen to people say or see "script" the word, I did not know when I was a beginner what the script is, so often see someone said you will write "script" when, always thought is some profound programming technology. But the opposite is true, scripting language is a simpler, lighter, and faster language than programming languages, so let's talk about what a script is.
Before we talk about scripts, let's talk about programming, the general Introduction programming language is more or less familiar with, programming is to let the computer do what people want to tell the computer.
The computer can understand the command actually only 0 and 1 of the sequence, but if let us through a variety of 0 and 1 sequence to operate the computer, it is undoubtedly very difficult, so people define their own language method to write the program, so that developers can be more fluent, easy to write programs, But the computer can still only understand the 01 sequence. So people want to use the "compile" function, the written easy-to-read language translated into the computer can recognize the 01 machine code.
Compilation: As the name implies, is the translation of the language, and then written into another language. In programming, we translate the code we write into 01 sequential machine languages and generate files.
"(casually mentioning can not see) early people define a language called assembler, which uses symbols to replace machine instructions that are not easy to remember, so programmers don't have to remember the instructions represented by the vast variety of 01 sequences. But this language is still not as easy to remember as our daily conversation, so people on this basis also defined a series of high-level language like Java, C and so on, this language than assembly language more close to People's daily speaking habits, which also makes programming difficulty greatly reduced. Note: Both the high-level language and the assembly language require the compiler to compile the executable file "
So now we're going to say script, the script is a more advanced language, a more simple language, its requirements are not high-level language so strict, simple syntax and light weight. Like a script written by a screenwriter, describe the episode in a streamlined language. And unlike high-level languages and assembly language, scripts do not have to be compiled into executable files, scripts corresponding to the use of the interpreter, through the interpreter can understand the script file and execute the statement. You can say that the interpreter is equivalent to the compiler for the high-level language of the script, but the difference is that the interpreter not only understands the command content of the script statement, but also executes the command, and does not need to generate a compiler-generated machine code executable file.
For example, the scripting language--javascript its interpreter is actually the browser, the browser opens HTML, detects the JavaScript command inserted in it, understands the command that the statement wants to execute, and executes directly.
There are many applications for scripts, such as: Web pages, games, shell programming in Linux, and so on.
Scripting language Script