arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1712.04189cs.SE
收藏

面向对象环境下一种实用的逻辑错误检测方法

A Practical Approach for Detecting Logical Error in Object Oriented Environment

Ghassan Samara

摘要:

程序设计语言是一种形式化构造的语言,用于向机器(特别是计算机)传达指令。程序设计语言可用于创建程序以控制机器的行为或表达算法。大多数程序员编写的程序通常都是正确编译的,没有语法或语义错误。但是,在程序执行后会出现一些其他错误(逻辑错误)。逻辑错误(LE)是在删除所有语法错误后仍然存在的错误。通常,编译器不会检测LE,因此产生的结果与程序员预期的不同。因此,逻辑错误的发现和修复是一个非常困难的问题,也是一个值得研究和实践的课题。有些LE是由于类对象的误用而导致的,在软件开发生存周期(SDLC)中,使用LE的软件被认为是高维护成本的低质量软件。本文提出了一个面向对象的环境,它允许程序员检测和发现LE以避免它,这个环境将被称为对象行为环境(OBEnvironment)将通过使用Xceed组件等工具,根据对象的预定义行为强制正确使用对象(这吸引了.Net Windows表单开发人员构建更好的应用程序),Alsing组件(为程序员提供一个区域,允许通过C#语言编写正确的语法代码)和Mind Fusion组件(为程序员提供一个区域,允许绘制状态图以显示对象状态)。

英文摘要:

A programming language is a formally constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs to control the behavior of a machine or to express algorithms. Most programs that are written by programmers are often compiled correctly with no syntax or semantic errors. However, some other errors appear after the execution of the program (logical error). Logical Errors (LE) are errors that remain after all syntax errors have been removed. Usually, the compiler does not detect LE, so the produced results are different from what the programmer is expecting. For this reason, discovering and fixing the logical error is very hard and proposes a good topic for research and practice. Some LE are resulted from the misuse of classes' objects, and in Software Development Life Cycle (SDLC), it is considered that the software with LE is low-quality software with high maintenance cost. In this paper, an object-oriented environment that allows the programmer to detect and discover LE to avoid it. This environment will be called Object Behavior Environment (OBEnvironment) will enforce the correct use of objects according to their predefined behaviors by using tools like Xceed Component (that appeal .Net windows form developers for building better applications), Alsing Component (that provides an area to programmer that allows writing correct syntax code by C# language) and, Mind Fusion Component (that provides an area to programmer that allows drawing State Diagrams to show object state).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑