Design By Contract (DBC) - is it any good?
Hello,
I started to reconsider applicability of DBC in real applications and was somewhat stunned as I was unable to imagine any class hierarchy (or even worse interface and its implementations) to which some reasonable contract may be applied Moreover, I start to search an Internet for such examples and completely failed - there is a lot of articles but no one that I found contains such examples. May somebody point me to such examples and/or share his opinions/experience on/with DBC.
And other problem - I do not see any way to prove that contracts on subclasses are correct (preconditions are not stronger, and postconditions are not more relaxed then in parent).
Regards,
Oleksandr
So no one else is interested in Design by Contract?
So no one else is interested in Design by Contract?