首页> 外文OA文献 >A Catalog of Bad Smells in Design-by-Contract Methodologies with Java Modeling Language
【2h】

A Catalog of Bad Smells in Design-by-Contract Methodologies with Java Modeling Language

机译:用Java建模语言设计合同方法中的恶臭目录

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Bad smells are usually related to program source code, arising from bad design and programming practices. Refactoring activities are often motivated by the detection of bad smells. With the increasing adoption of Design-by-Contract (DBC) methodologies in formal software development, evidence of bad design practices can similarly be found in programs that combine actual production code with interface contracts. These contracts can be written in languages, such as the Java Modeling Language (JML), an extension to the Java syntax. This paper presents a catalog of bad smells that appear during DBC practice, considering JML as the language for specifying contracts. These smells are described over JML constructs, although several can appear in other DBC languages. The catalog contains 6 DBC smells. We evaluate the recurrence of DBC smells in two ways: first by describing a small study with graduate student projects, and second by counting occurrences of smells in contracts from the JML models application programming interface (API). This API contains classes with more than 1,600 lines in contracts. Along with the documented smells, suggestions are provided for minimizing the impact or even removing a bad smell. It is believed that initiatives towards the cataloging of bad smells are useful for establishing good design practices in DBC.
机译:不良气味通常与程序源代码有关,源于不良的设计和编程实践。重构活动通常是由发现难闻的气味引起的。随着在正式软件开发中越来越采用按合同设计(DBC)方法,在将实际生产代码与接口合同结合在一起的程序中,类似的不良设计证据也可以找到。这些合同可以用Java建模语言(JML)(是Java语法的扩展)之类的语言编写。本文介绍了在DBC练习期间出现的难闻气味的目录,并将JML作为指定合同的语言。这些气味是通过JML构造描述的,尽管在其他DBC语言中可能会出现几种。该目录包含6种DBC气味。我们通过两种方式评估DBC气味的复发:一种是通过描述一个研究生项目进行的小型研究,第二种是通过计算来自JML模型应用程序编程接口(API)的合同中气味的出现。该API包含合同中包含1,600行以上的类。除了记录的气味外,还提供了一些建议,以最大程度地减少影响,甚至消除难闻的气味。可以相信,针对不良气味进行分类的举措对于在DBC中建立良好的设计实践很有用。

著录项

  • 作者

    Viana Thiago;

  • 作者单位
  • 年度 2013
  • 总页数
  • 原文格式 PDF
  • 正文语种 en
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号