摘要
尽管代码重用的理论具有较高的效益,但大部分开发者很少重用他们的代码。导致代码重用率降低下的主要原因之一是代码缺乏标准化。然而仅有标准化是不够的,代码还必须是通用和安全的。为了创建安全可靠的可重用代码,必须采用有效的错误处理编码,错误处理编码也必须以标准的形式来实现,并且在所编写的每个程序中强调使用并进行检验。文章提出使用VB编程,以创建标准的、安全的、可重用的代码。
Although the theory of code reuse has a high efficiency, but most developers rarely reuse their code. One of the main reasons for leading to the reducing of the rate of the code reuse is the code' s lacking of standardization. However, only a standardization is not enough, the code must also be universal and safe. In order to create a safe and reliable reusable code, effectively error-handling code must be used, and error- handling code must also be achieved in the form of the standard, and must be emphasized the use and tested in each program prepared. This paper proposes the use of VB programming, creates a standard, safe and reusable code.
出处
《煤炭技术》
CAS
北大核心
2010年第2期34-36,共3页
Coal Technology
关键词
安全编码
可重用代码
编程标准
safety codes
reusable code
programming standards