|
Posted by Justin Koivisto on 05/23/05 23:34
Allodoxaphobia wrote:
> On Mon, 23 May 2005 15:45:59 -0400, Dave wrote:
>
>>(joealey2003@yahoo.com) decided we needed to hear...
>><snip most of code>
>>
>>>if (! $Not_Expired) {
>>
>>Nice double-negative - hope you don't normally code this way.
>
>
> Hah! Reminds me of my olde IBM Assembler Language coding days --
> where I had to hack the code of another fella from time-to-time.
> He had the infuriating habit of 'encoding' his (sparse and terse)
> comments in negative logic:
>
> ... <maybe 50 lines of code with _no_ comments.>
> CLI RESPONSE,C'N'
> BE CLEANUP NBIF CONTINUE
> ... <only he'd comment NBIF CONT , and the labels
> <would've been RESP and CU. sigh...>
>
> I always had a hard time wrapping my head around his View Of The World.
> (NBIF was his commenting shorthand for No-Branch-If.)
> He, on the other hand, was comfotable with the concept of something
> like: "There is Not No Empty Buffers", or the somesuch. Phew!!
> I always felt that if you coded a branch at some point in the program,
> you should let the next guy know _why_ the branch would be taken....
heh - I used to do that in the MIPS assembler stuff that I wrote in
college. Of course, that was for no other reason that to make the
instructor either think hard to say "You get an A" without looking at
the code. ;)
--
Justin Koivisto - justin@koivi.com
http://koivi.com
Navigation:
[Reply to this message]
|