Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 36723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:26:17+00:00 2026-05-10T14:26:17+00:00

Do you use Design by Contract professionally? Is it something you have to do

  • 0

Do you use Design by Contract professionally? Is it something you have to do from the beginning of a project, or can you change gears and start to incorporate it into your software development lifecycle? What have you found to be the pros/cons of the design approach?

I came across the Design by Contract approach in a grad school course. In the academic setting, it seemed to be a pretty useful technique. But I don’t currently use Design by Contract professionally, and I don’t know any other developers that are using it. It would be good to hear about its actual usage from the SO crowd.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:26:17+00:00Added an answer on May 10, 2026 at 2:26 pm

    I can’t recommend it highly enough. It’s particularly nice if you have a suite that takes inline documentation contract specifications, like so:

    // @returns null iff x = 0 public foo(int x) {   ... } 

    and turns them into generated unit tests, like so:

    public test_foo_returns_null_iff_x_equals_0() {   assertNull foo(0); } 

    That way, you can actually see the tests you’re running, but they’re auto-generated. Generated tests shouldn’t be checked into source control, by the way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting started on figuring out how to use RESTful design. I have this
Since there is no finally in C++ you have to use the RAII design
I’ve never worked on software where I needed to use design patterns. According to
Perhaps my question is similar in nature to this one: Do you use design
I'm familiar with object-oriented architecture, including use of design patterns and class diagrams for
I design web apps mainly for desktop use (not PDAs, phones etc) by co-workers
Name the design considerations in deciding between use of a singleton versus a static
Whats the best design pattern to use for LINQ and type tables that exist
I use the Shift + F7 often to switch between source and design view.
Hi I try solve this situation. I have WPF app with MVVM design. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.