Skip to main content

Extreme Design by Contract

  • Conference paper
  • First Online:
Extreme Programming and Agile Processes in Software Engineering (XP 2003)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2675))

Abstract

Design by contract is a practical technique for developing code together with its (light-weight and executable) specification. It is synergistic with several XP practices, particularly unit testing and refactoring. This paper investigates this relationship and points out how it can be automated (at least in part).

Missing in the figures shown in this paper is some of the code, as well as part of the contract. Also, some assertions have been slightly simplified. The full set of programs, with additional intermediate steps not shown here, is available at http://www.faculty.idc.ac.il/yishai/xp-contracts.htm.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. B. Meyer. Object-Oriented Software Construction. Prentice Hall, 2nd edition, 1997.

    Google Scholar 

  2. R. Kramer. iContract—the Java design by contract tool. In Proc. Technology of Object-Oriented Languages and Systems, TOOLS-USA. IEEE Press, 1998.

    Google Scholar 

  3. R. Kramer. iContract home page. http://www.reliable-systems.com/tools/iContract/iContract.htm.

  4. Parasoft Corp. Jcontract home page. http://www.parasoft.com/jsp/products/home.jsp?product=Jcontract.

  5. Man Machine Systems. Design by contract tool for Java—JMSAssert. http://www.mmsindia.com/JMSAssert.html.

  6. A. van Deursen and L. Moonen. The video store revisited: Thoughts on refactoring and testing. In M. Marchesi and G. Succi, editors, Proc. 3rd Int’l Conf. Extreme Programming and Agile Processes in Software Engineering, pages 71–76, 2002.

    Google Scholar 

  7. M. Fowler. Refactoring: Improving the Design of Existing Code. Addison-Wesley, 2000.

    Google Scholar 

  8. Y. A. Feldman and L. Gendler. Automatic discovery of software contracts. In progress.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2003 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Feldman, Y.A. (2003). Extreme Design by Contract. In: Marchesi, M., Succi, G. (eds) Extreme Programming and Agile Processes in Software Engineering. XP 2003. Lecture Notes in Computer Science, vol 2675. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44870-5_32

Download citation

  • DOI: https://doi.org/10.1007/3-540-44870-5_32

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-40215-2

  • Online ISBN: 978-3-540-44870-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics