Uncovering hidden contracts: The .NET example

被引:12
作者
Arnout, K [1 ]
Meyer, B
机构
[1] ETH Swiss Fed Inst Technol, Zurich, Switzerland
[2] Monash Univ, Clayton, Vic 3168, Australia
关键词
D O I
10.1109/MC.2003.1244535
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Software contracts take the form of routine preconditions, postconditions, and class invariants written into the program itself. The design by contract methodology uses such contracts for building each software element, an approach that is particularly appropriate for developing safety-critical software and reusable libraries. This methodology is a key design element of some existing libraries, especially the Eiffel software development environment, which incorporates contract mechanisms in the programming language itself. Because the authors see the contract metaphor as inherent to quality software development, they undertook the work reported here as a sanity check to determine whether they see contracts everywhere simply because their development environment makes using them natural or whether contracts are intrinsically present, even when other designers don't express or even perceive them.
引用
收藏
页码:48 / +
页数:9
相关论文
共 9 条
  • [1] The .NET Contract Wizard: Adding design by contract to languages other than Eiffel
    Arnout, K
    Simon, R
    [J]. TOOLS 39: TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES AND SYSTEMS, PROCEEDINGS: SOFTWARE TECHNOLOGY FOR THE AGE OF THE INTERNET, 2001, 39 : 14 - 23
  • [2] Hoare C. A. R., 1972, Acta Informatica, V1, P271, DOI 10.1007/BF00289507
  • [3] Design by contract: The lessons of Ariane
    Jezequel, JM
    Meyer, B
    [J]. COMPUTER, 1997, 30 (01) : 129 - 130
  • [4] MCFARLANE K, 2002, DESIGN CONTRACT FRAM
  • [5] APPLYING DESIGN BY CONTRACT
    MEYER, B
    [J]. COMPUTER, 1992, 25 (10) : 40 - 51
  • [6] MEYER B, 1997, OBJECT ORIENTATED SO
  • [7] MEYER B, 1994, THESIS U WASHINGTON
  • [8] *MICR, 2003, NET SYST COLL LIB
  • [9] Mitchell R., 2002, DESIGN CONTRACT EXAM