|
Under the assumption that the 14 items of the poll are not correlated to each other the 10286 votes of the 1878 responses should follow the binomial distribution.
Although the distribution of the votes over the responses is not given, the mean votes per response can be calculated by
votes/respones = 10286/1878 ~= 5.477
This value 5.477 together with the knowledge that there are 14 items is enough to calculate the binomial distribution. From that distribution and the number of responses the expected number of votes can be calculated.
This turns out to be 10301 which is very close to the observed value of 10286.
Sorrily, my statistical knowledge is not sufficient to prove that the difference of 15 votes is within the confidence interval. Is somebody able to give a pointer?
<div class="ForumMod">modified on Monday, December 24, 2007 1:11:02 PM</div>
|
|
|
|
|
If it doesn't support CListCtrl it's not a real language!
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
Design by contract support but unfortunately, i am not sure this will be implemented in any "standard" language
|
|
|
|
|
Didier Dobrovitch wrote: i am not sure this will be implemented in any "standard" language
Not sure what you consider a "standard" language, but at least Eiffel and D have it as a language feature.
|
|
|
|
|
Have you used D much? From time to time I go and visit the site to see what's new and each time I come away wishing I could use this on a professional basis. Am I the only one who thinks it's got some really fantastic, powerful and *practical* features?
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
VCF Blog
|
|
|
|
|
Jim Crafton wrote: Have you used D much?
Not at all I learn a language either to get familiar with new concepts that would make me a better programmer (Erlang, Haskell,...) or to use them in my day-to-day job (VBA, C#, Javascript...) and D is simply "improved" C++ without any real life use.
|
|
|
|
|
Oops, I did not see there was a "DBC" reply
What I mean by a "standard" language is a language really used in companies
Are there many companies using Eiffel and D ?
|
|
|
|
|
Didier Dobrovitch wrote: Are there many companies using Eiffel
There are companies using Eiffel but not many. I don't know about D.
Kevin
|
|
|
|
|
Design By Contract would be great.
|
|
|
|
|
I agree. They already have it in Spec#. Will they roll it into C#?
Kevin
|
|
|
|
|
I do not know if Microsoft included some features of Spec# in the new C# 3.0 or in the VS2008.
And I think Spec# is not fully supported by Microsoft.
|
|
|
|
|
I don't think C# 3.0 has a single feature from Spec#. A pity.
Kevin
|
|
|
|
|
|
|
5n
Suresh
|
|
|
|
|
I don't understand them, but they seem like a good idea.
|
|
|
|
|
RAII[^] support is the very first thing I look for when evaluating a language. So far, C++ and PHP 5.2 are acceptable. Many other languages pay lip service but fall short.
|
|
|
|
|
If a base class has
public mybase ( int x ) { ... }
don't make derived classes require
public myderived ( int x ) : base ( x ) {}
when no specialization of the constructor is required.
|
|
|
|
|
I'm totally agree with you ... I always wonder why you should rewrite a constructor even if no specialization is required
Thumbs Up
|
|
|
|
|
PIEBALDconsult wrote: If a base class has
public mybase ( int x ) { ... }
don't make derived classes require
public myderived ( int x ) : base ( x ) {}
I'm confused. You can always write
public myderived () : base ( 5 ) {}
But, how else is the ctor for mybase supposed to know what to set for x?
In c++ you could use a default arg.
|
|
|
|
|
No, no, myderived should still have a constructor that takes one int, but I shouldn't have to write it.
It's probably only useful in limited situations, but here's an example;
System.Exception has four constructors, most notably System.Exception(System.String) and System.Exception(System.String,System.Exception)
If I want to write a custom Exception without actually adding any functionality I'd prefer to write
public class MyException : System.Exception {}
...
new MyException ( "Something went wrong" , innerexception ) ;
rather than
public class MyException : System.Exception
{
public MyException ( System.String Message ) : base ( Message ) {}
public MyException ( System.String Message , System.Exception InnerException ) : base ( Message , InnerException ) {}
}
...
new MyException ( "Something went wrong" , innerexception ) ;
}
Now consider having to write and maintain bunch of custom Exceptions and see how much better inheritable constructors would be:
public class MyException0 : System.Exception {}
public class MyException1 : System.Exception {}
public class MyException2 : System.Exception {}
public class MyException3 : System.Exception {}
public class MyException4 : System.Exception {}
public class MyException5 : System.Exception {}
public class MyException6 : System.Exception {}
public class MyException7 : System.Exception {}
public class MyException8 : System.Exception {}
public class MyException9 : System.Exception {}
|
|
|
|
|
This is one that the designers of C# and D took rather seriously, but in different ways.
|
|
|
|
|
It may be a source of trouble for newbies, but why punish the experts?
|
|
|
|
|
In c#, interfaces suffice.
|
|
|
|
|