...
首页> 外文期刊>Science of Computer Programming >Avoiding code pitfalls in Aspect-Oriented Programming
【24h】

Avoiding code pitfalls in Aspect-Oriented Programming

机译:在面向方面的编程中避免代码陷阱

获取原文
获取原文并翻译 | 示例
           

摘要

Aspect-Oriented Programming (AOP) is a maturing technique that requires a good comprehension of which types of mistakes programmers make during the development of applications. Unfortunately, the lack of such knowledge seems to represent one of the reasons for the cautious adoption of AOP in real software development projects. This paper reports on the results of a series of experiments whose main goal is to analyze and catalogue code pitfalls that are likely to lead programmers to make mistakes in AOP refactoring. Each experiment consists of a task that requires the aspectization of a crosscutting concern in one object-oriented application. Eight rounds of the experiment provided us with data of 98 AOP implementations from four crosscutting concerns in four different applications. Each participant of the experiment produced one implementation. Based on the analysis of these implementations, we (ⅰ) document six categories of recurring mistakes made by programmers, (ⅱ) correlate these mistakes with the programmer expertise in object-oriented programming, years of software development, and pair programming, and (ⅲ) derive a catalogue of code pitfalls which are likely to lead programmers to make the documented mistakes. We apply significance tests in order to statistically evaluate our results. We also present a prototype tool to warn programmers of the code pitfalls during refactoring activities.
机译:面向方面的编程(AOP)是一项成熟的技术,需要对程序员在开发应用程序时犯下的哪种类型的错误有很好的理解。不幸的是,缺乏这种知识似乎代表了在实际软件开发项目中谨慎采用AOP的原因之一。本文报告了一系列实验的结果,这些实验的主要目的是分析和分类可能导致程序员在AOP重构中犯错误的代码陷阱。每个实验都包含一项任务,该任务要求在一个面向对象的应用程序中横切关注点的方面。八轮实验为我们提供了来自四个不同应用中四个横切关注点的98个AOP实现的数据。实验的每个参与者产生了一个实现。基于对这些实现的分析,我们(ⅰ)记录六类程序员经常发生的错误,(ⅱ)将这些错误与程序员在面向对象编程,多年的软件开发和结对编程中的专业知识相关联,并且(ⅲ )得出的代码陷阱目录可能会导致程序员犯下所记录的错误。我们应用显着性检验,以便统计评估我们的结果。我们还提供了一个原型工具,用于在重构活动中警告程序员代码陷阱。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号