Re: C++ standards committee looking at adding Cairo to the C++ standard
Ian Collins <ian-news@hotmail.com> writes:
Which can be unit tests, which C++ certainly does support.
There are contracts that cannot be expressed as unit tests.
For example, we might require that ?for all int values i:
0 <= f( i )< 100?. Unit tests can express random examinations
of this, but they cannot directly express a universal quantification
over a very large set.
Unit tests are great! But even in Java, they do not /replace/
the contracts in the JavaDoc, but are /added/ to them.
Teach them how things are done in the real world: pick a library and use it.
What works in the real world does not always work in the
classroom. First, it does not even always work in the real
world (many software project fail, are cancelled, or overdue).
Next, the classes are already much too short to teach most
of what is in the standard C++, so they only teach a selection.
Teaching a ?picked library? means that there will be even
less time to teach C++ proper. While some students might
like this, others might be alienated by it.