Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Eiffel > Re: Modular Pro...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 12 Topic 876 of 913
Post > Topic >>

Re: Modular Protection vs Assertions ...

by bravegag <bravegag@[EMAIL PROTECTED] > Aug 1, 2007 at 12:14 AM

Hi Ulrich,

Many thanks for your feedback.

On Jul 31, 8:54 am, Ulrich Windl <Ulrich.Wi...@[EMAIL PROTECTED]
>
wrote:

> As Meyer points out, a correct program does not pass invalid parameters
(where
> the precondition would be violated). The task to find bad callers is
during
> development, not during field-use. Therefore the precondition checks are
> normally off. If the precondition is violated, all guarantees are lost.
The
> routine _may_ raise an exception, but it's not a MUST.
>
Indeed, when developing a normal software system you find bad callers
during development time whereas when developing a reusable class
library API e.g. Patterns Library, Network Library, Data Structures
library you do not know what the bad callers are gonna be. That's why
I was asking in the OP if what Bertrand remarks as "Modular
Protection" will also apply to Software-to-Software communication e.g.
developing the third party library.

I am currently the developer of a reusable java class library and this
is a major question:

- Shall I leave my potential client modules on their own? they will
have to figure out what my precondition violations are. This is the
case when using assertions.

- Shall I provide a strict defensive layer i.e. filter modules as
Bertrand calls it so that whenever my library gets in control I know
for sure that the input is valid?

Best regards,
Giovanni




 12 Posts in Topic:
Modular Protection vs Assertions ...
bravegag <bravegag@[EM  2007-07-28 06:40:53 
Re: Modular Protection vs Assertions ...
Colin LeMahieu <clemah  2007-07-29 01:08:25 
Re: Modular Protection vs Assertions ...
llothar <llothar@[EMAI  2007-07-29 04:24:56 
Re: Modular Protection vs Assertions ...
Ulrich Windl <Ulrich.W  2007-07-31 08:59:00 
Re: Modular Protection vs Assertions ...
Ulrich Windl <Ulrich.W  2007-07-31 08:54:06 
Re: Modular Protection vs Assertions ...
llothar <llothar@[EMAI  2007-07-31 11:26:53 
Re: Modular Protection vs Assertions ...
bravegag <bravegag@[EM  2007-07-31 23:57:33 
Re: Modular Protection vs Assertions ...
bravegag <bravegag@[EM  2007-08-01 00:14:09 
Re: Modular Protection vs Assertions ...
Ulrich Windl <Ulrich.W  2007-08-02 10:47:43 
Re: Modular Protection vs Assertions ...
llothar <llothar@[EMAI  2007-08-01 01:39:38 
Re: Modular Protection vs Assertions ...
llothar <llothar@[EMAI  2007-08-01 01:42:00 
Re: Modular Protection vs Assertions ...
Colin LeMahieu <clemah  2007-08-01 07:27:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 10:46:30 CDT 2008.