Định nghĩa Block là gì?
Block là Khối. Đây là nghĩa tiếng Việt của thuật ngữ Block - một thuật ngữ thuộc nhóm Technology Terms - Công nghệ thông tin.
Độ phổ biến(Factor rating): 5/10
Một khối là một phần của mã phần mềm hoặc một thuật toán trong lập trình phần mềm. Một khối có thể bao gồm một hoặc nhiều câu lệnh hoặc tờ khai. Có thể cho một khối để chứa một hoặc nhiều khối lồng bên trong nó. Nếu một ngôn ngữ lập trình bao gồm khối và khối lồng nhau, nó được gọi là một ngôn ngữ lập trình khối cấu trúc. Khối là một cơ bản đặc trưng của cấu trúc điều khiển biểu mẫu lập trình và giúp đỡ cấu trúc. Tuy nhiên, nó không phải là cần thiết để thêm khối trong mã phần mềm; khối nên được thúc đẩy bởi sự cần thiết. Đồng thời gian, khối có thể nâng cao hiệu quả mã.
Xem thêm: Thuật ngữ công nghệ A-Z
Giải thích ý nghĩa
Các tiện ích chính của khối là cho phép toàn bộ phần mã chứa khối được đối xử như một mảnh duy nhất của mã này, và rằng cung cấp một số lợi thế. Ưu điểm lớn nhất là nó giúp tránh nhầm lẫn nếu các biến tương tự được quy định tại một nơi khác trong cùng một mã. Từ các biến được định nghĩa trong một khối mã nhưng nó không được xử lý một cách độc lập, mà là một mảnh duy nhất của mã này, không có sự nhầm lẫn trên sự hiện diện của các biến ở những nơi khác. Nói cách khác, khối giúp đỡ giảm phạm vi từ vựng của các biến, hàm và thủ tục được lưu trữ trong nơi khác.
What is the Block? - Definition
A block is a section of software code or an algorithm in software programming. A block can consist of one or more statements or declarations. It is possible for a block to contain one or more blocks nested within it. If a programming language comprises blocks and nested blocks, it is called a block-structured programming language. Blocks are a basic feature of structured programming and help form control structures. However, it is not necessary to add blocks in software code; blocks should be driven by necessity. At the same time, blocks can improve code efficiency.
Understanding the Block
The main utility of blocks is to allow the entire section of code containing the block to be treated as a single piece of code, and that offers a number of advantages. The biggest advantage is that it helps avoid confusion if the same variables are defined in a different place in the same code. Since the variables are defined within a code block but it is not treated independently, but rather as a single piece of code, there is no confusion over the presence of variables in other places. In other words, blocks help reduce the lexical scope of the variables, functions and procedures stored in other places.
Thuật ngữ liên quan
- Programming
- Code
- Procedure
- Function
- Variable
- Commit
- Access Modifiers
- Acyclic
- Appending Virus
- Armored Virus
Source: Block là gì? Technology Dictionary - Filegi - Techtopedia - Techterm