Reply to OT: double-negative, was Re: Amazing BUG!!!

Your name:

Reply:


Posted by Allodoxaphobia on 05/23/05 23:23

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....

Jonesy
--
| Marvin L Jones | jonz | W3DHJ | linux
| Gunnison, Colorado | @ | Jonesy | OS/2 __
| 7,703' -- 2,345m | config.com | DM68mn SK

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация