Re: Object-orientation: Have I finally attained "high priesthood"?

From: Ishan De Silva (idesilva_at_eudoramail.com)
Date: 09/06/04

  • Next message: Ian: "Application customisation"
    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.


  • Next message: Ian: "Application customisation"

    Relevant Pages

    • Re: Running IDE as a standard user in Vista
      ... the IDE. ... Class ComctlLib.StatusBar of control sBar was not a loaded ... control class. ... loaded control class. ...
      (microsoft.public.vb.general.discussion)
    • Re: newbie: stuck on trying to modify a control porerty from within created thread. Pls some help.
      ... It doesn't matter where the method trying to modify the control is declared ... what is important is the thread executing that ... event is hooked by the control class. ... > You need to call BeginInvoke method of the delegate from the thread. ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: CMonthCalendarCtrl problem
      ... Load animate control class. ... Load toolbar, status bar, trackbar, and ToolTip control classes. ...
      (microsoft.public.vc.atl)
    • User Control without Visual Studio
      ... Im trying to get a user control working in mono/ASP.NET. ... it declaratively in a hosting page's .aspx file. ... your control class for you and add's whatever is needed in your hosting ... compiler will recognize my class type and let me access it ...
      (microsoft.public.dotnet.framework.aspnet)
    • ASP.NET User Controls - missing something small?
      ... Im trying to get a user control working in mono/ASP.NET. ... it declaratively in a hosting page's .aspx file. ... your control class for you and add's whatever is needed in your hosting ... compiler will recognize my class type and let me access it ...
      (microsoft.public.dotnet.framework.aspnet)