What Is Literate Programming?
The code and its documentation are alternated. This style does not provide a standalone version of the code. Instead, it uses computer programs to extract information from a single source file. These source files are those prepared for printed documents and those that need to be compiled. The code file.
Text programming
Right!
- Chinese name
- Text programming
- Foreign name
- no
- Features
- No standalone version of the code
- Definition
- Codes and their documentations alternate
- The code and its documentation are alternated. This style does not provide a standalone version of the code. Instead, it uses computer programs to extract information from a single source file. These source files are those prepared for printed documents and those that need to be compiled. The code file.
- Textual programming definition
- The code and its documentation are alternated. This style does not provide a standalone version of the code. Instead, it uses computer programs to extract information from a single source file. These source files are those prepared for printed documents and those that need to be compiled. The code file. The main idea behind text-based programming is that most source code is intended for humans to read, not for execution, so it is important to improve readability and keep their documentation information consistent with the code. When displaying a program in text programming style, we break it down into small parts, define and describe the purpose of each part, and then talk about the assembly of the parts to form the entire program. Another important idea is that each part can be Arbitrary order, including top-down or bottom-up development mode, or a mixed mode (instead of the order specified by the programming language rules).
- Text programming is often used in several related programs
- [font class = red] A big advantage of text programming is that once a program part is defined once, it can be used to build different variants of the same topic. The above program part is not only used in the current program, it also Will appear in another program later. [/ font]