Re: Wasted Space and Kernighan

2008-10-07 Thread Brian Stern






"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




Personally I find debugging to be half as hard as writing the code in  
the first place.


Also, debugging my own clever code is rarely a problem.  Debugging  
someone else's clever code is another story.


Where do bindings fall in all this?  It's often like debugging someone  
else's clever code.


--
Brian Stern
[EMAIL PROTECTED]



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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]


Re: Wasted Space and Kernighan

2008-10-07 Thread Colin Barrett
On Tue, Oct 7, 2008 at 7:30 AM, Bill Mutch <[EMAIL PROTECTED]> wrote:
> Even a general conclusion is not valid unless by 'clever' he means
> intentionally obtuse.

I'm willing to give bwk the benefit of the doubt. I assumed he was
giving a warning against cleverness for cleverness's sake, which is
quite a bit different than just coming up with an intelligent
solution.

-Colin
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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]


Re: Wasted Space and Kernighan

2008-10-07 Thread Bill Mutch
First let me say that the views expressed by Michael Ash are almost  
identical to mine.
However, I have to take issue with the often quoted statement of  
Kernighan on debugging.



"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


Kernighan takes a general assertion on debugging and concludes that it  
can be applied to any specific example.
That is simply not valid whatever his meaning of 'hard' or 'cleverly  
as possible'.


Even a general conclusion is not valid unless by 'clever' he means  
intentionally obtuse.


I would consider clever coding to be using one's imagination to write  
code that accomplishes its purpose

in perhaps non obvious ways. It could even be easier to debug!

Code which I consider 'clever' that I wrote on an IBM mainframe in  
assembler was designed to make and did make debugging production  
programs considerably easier.


Bill
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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]