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

  • Home
  • SEARCH
  • 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 176081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:48:47+00:00 2026-05-11T13:48:47+00:00

Besides better readability (maybe?) and being able to chain constraints using & and |

  • 0

Besides better readability (maybe?) and being able to chain constraints using & and |, what other advantages does the Constraint Model have over the Classic Model?

I’m a happy user of the Classic Model, and I’m in the process of deciding whether it’s worth the effort to refactor old tests.

  • 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-11T13:48:48+00:00Added an answer on May 11, 2026 at 1:48 pm

    I have to say I’m a fan of the ‘classic’ model. I find it easier to formulate my assertions for the most part, and I find them easier to read too. There’s nothing in the code which isn’t necessary – no ‘That’ and ‘Is’ which sounds fluent but doesn’t lend itself to discoverability IMO.

    That may well be due to familiarity as much as anything else, but I thought it would just be worth reassuring you that you’re not the only one who finds the classic model perfectly reasonable 🙂

    Having said that, when there’s something which is easier to express using constraints, it makes sense to use it. This is particularly true when there’s some condition which can be explicitly tested with a constraint, but where the classic model would just use Assert.IsTrue(condition). The key point is that the constraint is likely to be able to give you more information than the classic one for such cases.

    As such I think it’s a good idea to learn the constraint-based model, but I wouldn’t go as far as converting any tests, and I wouldn’t use it where you find the classic model to be simpler or more readable.

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

Sidebar

Ask A Question

Stats

  • Questions 205k
  • Answers 205k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer For MS software, have a look at WebsiteSpark program. You… May 12, 2026 at 8:58 pm
  • Editorial Team
    Editorial Team added an answer show_error() words similarly to die() in native PHP. It will… May 12, 2026 at 8:58 pm
  • Editorial Team
    Editorial Team added an answer You can match user IP with GeoIP database end extract… May 12, 2026 at 8:58 pm

Related Questions

I have a fairly complex Xcode project and I want to add Qt to
Besides Markaby and Haml , are there any better Rails View Templating mechanisms?
Is there a better way to watch for new entries in a table besides
Besides the CODEX what resources do you recommend to help a person new to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.