Re: A Design Problem
- From: "Daniel T." <daniel_t@xxxxxxxxxxxxx>
- Date: Sun, 26 Aug 2007 13:49:41 -0400
S Perryman <q@xxxxx> wrote:
Daniel T. wrote:
With a synchronous message the postcondition is *at most*
"delivered", "understood", or "processed"
Wrong. The post-condition is *at the very least* ... (which is what
Dmitry stated when he wrote "the postcondition also includes" ) .
I miss-spoke. I am advocating that the most flexible systems have
methods with such postconditions. Yes, a client can require much more
from a server (the client can make the specification so stringent that
it can only be satisfied by a single algorithm,) but that limits what
the server is allowed to do in response.
To borrow from Meyer, "The postcondition True is the weakest possible
assertion, satisfied by all states." With such a postcondition, the
message receiver will do the right thing regardless of what it does (as
long as the receiver passes control back to the sender in a finite
amount of time.) That gives the receiver maximum flexibility in
implementation, and since an OO program is full of message receivers,
the more of them that have this flexibility, the more flexible the
program is over all.
.
- Follow-Ups:
- Re: A Design Problem
- From: S Perryman
- Re: A Design Problem
- References:
- A Design Problem
- From: Mousam
- Re: A Design Problem
- From: H. S. Lahman
- Re: A Design Problem
- From: Nick Keighley
- Re: A Design Problem
- From: Daniel T.
- Re: A Design Problem
- From: Dmitry A. Kazakov
- Re: A Design Problem
- From: Daniel T.
- Re: A Design Problem
- From: Dmitry A. Kazakov
- Re: A Design Problem
- From: Daniel T.
- Re: A Design Problem
- From: Dmitry A. Kazakov
- Re: A Design Problem
- From: Daniel T.
- Re: A Design Problem
- From: Dmitry A. Kazakov
- Re: A Design Problem
- From: Daniel T.
- Re: A Design Problem
- From: S Perryman
- A Design Problem
- Prev by Date: Re: Getting started with object design
- Next by Date: Re: A Design Problem
- Previous by thread: Re: A Design Problem
- Next by thread: Re: A Design Problem
- Index(es):