Re: WOComponents, Packages, and Protected variables.

From: Chuck Hill (chil..lobal-village.net)
Date: Thu Aug 16 2007 - 13:23:28 EDT

  • Next message: Guido Neitzer: "Re: WOComponents, Packages, and Protected variables."

    On Aug 16, 2007, at 10:17 AM, Guido Neitzer wrote:

    > On 16.08.2007, at 11:05, Chuck Hill wrote:
    >
    >> Better sit down. I agree with you. :-) Though not so much for
    >> "type is good" but "API is good". Having all this in a dictionary
    >> hides the API. The binding validation is a valuable side
    >> effect ;-) and this _is_ Java so you might as well benefit from
    >> the type system.
    >
    > Perhaps you think, I go too far - but I'm not doing that. I don't
    > use that as an API replacement, I use it only for stuff, that is
    > used ONLY in this one component. Like, when I calculate a lot of
    > stuff for a "dashboard" page or something I'll might end up with
    > lots of Number and String objects I want to show and often I put
    > them into the dict. But they are not used anywhere outside and I
    > don't go so far to push values from outside into that dictionary
    > (like overriding takeValueForKey and valueForKey and putting stuff
    > in there or so) ...

    I could probably accept this provided they are not used in sub-
    classes. My concern is that what you use with caution and reason,
    someone else will abuse horribly.

    Chuck

    -- 
    

    Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects



    This archive was generated by hypermail 2.0.0 : Thu Aug 16 2007 - 13:24:35 EDT