[cap-talk] Capabilities by example in C#
Sandro Magi
naasking at higherlogics.com
Wed Nov 1 12:15:14 CST 2006
I initially had a class called DirtySecret which I used for this exact
reason.
Disadvantages:
1. one more class to squeeze on the slide (although DirtySecret could be
small)
2. one more object whose purpose the reader has to understand
I'm still waffling on this issue, so if others support the change, I'll
do it. :-)
Sandro
Karp, Alan H wrote:
> I like it a LOT. Very nice job. The only thing I would change is the
> object you control access to. In your example, it's a string. We know
> in our brains that's just an object, but in our hearts we treat it as
> pure data. I think the example would work better if you were
> controlling an object, say
>
> Whisperer whisperer = new Whisperer("I play with Barbies.");
>
> With getter
>
> String secret = whisperer.whisper();
>
> Now, when you show passing an argument, you'll be passing a reference to
> something everyone thinks of as an object.
>
> Shrink freud = new Shrink();
> freud.tell(whisperer);
>
> (I don't play with Barbies, either. Well, maybe sometimes.)
>
> _________________________
> Alan Karp
> Principal Scientist
> Virus Safe Computing Initiative
> Hewlett-Packard Laboratories
> 1501 Page Mill Road
> Palo Alto, CA 94304
> (650) 857-3967, fax (650) 857-7029
> https://ecardfile.com/id/Alan_Karp
> http://www.hpl.hp.com/personal/Alan_Karp/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> cap-talk mailing list
> cap-talk at mail.eros-os.org
> http://www.eros-os.org/mailman/listinfo/cap-talk
>
More information about the cap-talk
mailing list