design-by-contract Questions
2
Solved
For the purpose of this discussion, there are two kinds of parameters an object constructor might take: state dependency or service dependency. Supplying a service dependency with an IOC container ...
Renounce asked 16/4, 2010 at 23:6
2
Solved
Contrary to Code Contracts in C#, in JML Code Contracts are just text that's used in the form of comments in the header of a method. Wouldn't it be better to have them exposed as Annotations, then?...
Reber asked 18/3, 2010 at 21:2
1
Solved
I'll best just show with a code example what I would like to accomplish?
class SomeClass
{
public int SomeProperty;
public void SomeOperation()
{
Contract.Ensures( "SomeProperty's value has n...
Gilson asked 28/1, 2010 at 11:56
2
Solved
I'd prefer examples to be in a Lisp variant (bonus points for Clojure or Scheme) since that's what I'm most familiar with, but any feedback regarding DBC in functional lanugages would of course be ...
Beater asked 8/12, 2009 at 7:39
5
Solved
What are the best practices for Design by Contract programming.
At college I learned the design by contract paradigma
(in an OO environment)
We've learned three ways to tackle the problem :
1) T...
Crustal asked 13/4, 2009 at 19:49
3
Solved
I understand that in the DbC method, preconditions and postconditions are attached to a function.
What I'm wondering is if that applies to member functions as well.
For instance, assuming I use i...
Frissell asked 2/8, 2009 at 19:7
2
I had the "pleasure" to be taught Eiffel at college by none other than Bertrand Meyer himself and just read that .NET 4.0 will include design by contract.
Can anyone with some insight elaborate on...
Hsu asked 16/6, 2009 at 18:6
3
Solved
Microsoft just released Code Contracts, a tool that integrates with Visual Studio and allows you to define contracts for your .Net code and get runtime and compile time checking.
Watch the video o...
Brimstone asked 25/2, 2009 at 3:5
9
Solved
I have a method which never returns a null object. I want to make it clear so that users of my API don't have to write code like this:
if(Getxyz() != null)
{
// do stuff
}
How can I show this i...
Symbolize asked 27/1, 2009 at 18:18
1
Solved
Does anyone here use Spec# regularly? I would like to know if it is stable and powerful enough before I start using it everywhere.
It looks like the syntax is influencing c# 4.0, which will h...
Empirin asked 12/1, 2009 at 23:7
11
Solved
After posting this question and reading that one I realized that it is very important to know if a method is supposed to return null, or if this is considered an error condition and an exceptions s...
Dissatisfied asked 4/1, 2009 at 18:30
© 2022 - 2024 — McMap. All rights reserved.