Re: Object-orientation: Have I finally attained "high priesthood"?
From: Ishan De Silva (idesilva_at_eudoramail.com)
Date: 09/06/04
- Previous message: Ishan De Silva: "3-ary relationship and association class"
- Maybe in reply to: Robert C. Martin: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Next in thread: Universe: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Reply: Universe: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Reply: Universe: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Reply: Universe: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Reply: H. S. Lahman: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 5 Sep 2004 22:36:54 -0700
"H. S. Lahman" <h.lahman@verizon.net> wrote:
Hi,
Your reply to the OP raised a question in my mind. I guess my
understading of the notion of a control class up until now is wrong.
[snip]
> The "controller" objects that your colleague seems bothered by are an
> entirely different thing. (They are also known as god objects.) Such
> objects coordinate other objects' behaviors, usually by hard-wiring
> sequences of operations in their implementations. Such objects are the
> classical higher level functions in a hierarchical functional
> decomposition that invoke lower level functions in a particular order.
>
> This sort of controller object is, indeed, an OO no-no because it
> violates peer-to-peer collaboration and necessarily creates hierarchical
> implementation dependencies between the controller and the other
> objects. Such dependencies led to the legendary Spaghetti Code of the
> SA/SD/SP era.
[snip]
Consider the scenario of a User Login.
There is a "LoginDlg" which rperesent the UI and handles the login
stimulus from the user. This (userid, password) is passed on to a
"LoginManager" class, which then invokes a "DatabaseBroker" class to
retrive the stored password from a database. Then the LoginManager
compares the so retrived password and passes the login attempt.
In this scenario, isn't the LoginManager a control class? Or does it
represent a higher level function in SA/SD approach? The discussion
thus far suggests the latter.
Thanks,
Ishan.
- Previous message: Ishan De Silva: "3-ary relationship and association class"
- Maybe in reply to: Robert C. Martin: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Next in thread: Universe: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Reply: Universe: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Reply: Universe: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Reply: Universe: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Reply: H. S. Lahman: "Re: Object-orientation: Have I finally attained "high priesthood"?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|