A program is binary (written in 0 and 1) data that has been translated into machine language so that a computer can interpret and execute the processes.
Source code can also be called a program.
When we write a program, we first combine letters and numbers to create a string of characters that humans can understand, and then write the instructions.
This is called source code. This source code is translated into machine language by software called a compiler (translating into machine language is called compiling).
Programming languages that take this format include C, C++, and FORTRAN.
■What is a script?
A script is a way of writing source code that is written so that humans can understand it, and can be executed without being aware of translating it into machine language.
In reality, the code is properly translated into machine language behind the scenes, and software called an interpreter translates each instruction into machine language and executes it.
Programming languages that take this format include Python, MATLAB, and JavaScript.
<Difference between a program and a script>
<Advantages and disadvantages>
The advantage of the script format is that it is easy to use. For example, you don't need to compile each time you run a program, so it's easy to debug code.
Another major advantage is that you can run code interactively with the computer, so you can execute each instruction one by one and see the results as you run the program.
The disadvantage is that it takes a long time to execute the program.
Also, since the contents of the program are easy to understand, it can be easily imitated by a third party.
To prevent this, even if the programming language is a script format, when the program is commercialized, it is first converted into a C language format, etc.,
and then converted into binary data before being released.