On Sun, Oct 5, 2008 at 4:13 PM, Michael Ash <[EMAIL PROTECTED]> wrote:

> "Debugging is twice as hard as writing the code in the first place.
> Therefore, if you write the code as cleverly as possible, you are, by
> definition, not smart enough to debug it." -- Brian W. Kernighan

  A very good sentiment. I'll have to remember that.

> You are both right and wrong. I don't view them as trivial and not
> particularly useful. What I view them as is as *less* useful than the
> "old-style" techniques when used for "real work". My experience has
> been that, in most non-trivial uses, bindings ultimately cost more
> time than they save.

  I've had a not-so-dissimilar experience myself but I believe it's my
own limited vision of their place in an application that is probably
causing much of it.

> ... my experience with bindings is that this kind of mystery
> behavior happens all to often, because there's simply no good way to
> find out what's *actually* going on, as opposed to what's supposed to
> be.

  Ah, opaque proxy objects. :-) This has been my biggest complaint,
but the situation has much improved in 10.5

> I realize that a lot of what I'm saying is fairly similar in theme to
> arguments used against OO application frameworks in the first place,
> I really haven't found any way to
> reasonably debug these things besides dumping out the bindings info in
> the debugger (always looks like it "should" look anyway), trying to
> put breakpoints in KVC accessors, and in general doing a lot of
> head-scratching and guessing. If there's a better way to fix these
> things when they go wrong I'd love to know what it is.

  I'd be interested in hearing this as well if it exists. I know mmalc
had traditionally been "the authority" on Bindings, so maybe if we say
pretty-please, he could offer some additional tips.

> KVO is terribly, horribly, frighteningly flawed at the API level but it
> can still be very handy once you know the Magic Incantation.

  You just *know* that when you make such a blanket statement, some
smart-ass is going to ask you to cite specific examples. I would be
honored if you'd consider me that smart-ass. :-)

--
I.S.
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to