size_t vs long.

Jason Duerstock jason.duerstock@gmail.com
Thu Nov 17 19:40:51 GMT 2022


On Thu, Nov 17, 2022 at 6:01 AM Alejandro Colomar via Libc-alpha
<libc-alpha@sourceware.org> wrote:
>
> Not really.  I was trying to be explicative, while being a bit funny, to make it
> more entertaining to read.  But as Brian Kernighan said, noone is smart enough
> to debug its own code:
>
> [
> 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 and P. J. Plauger in The Elements of Programming
> Style.

Not to get too far off topic, but I took this to mean that one should
endeavor to be boring and straightforward when coding unless it was
absolutely necessary to be clever, as the boring and straightforward
code would be easier to debug.

Or at the very least, one should never be more than 50% clever about it.

Jason


More information about the Libc-alpha mailing list