[dba-Tech] On Odious Code

Porter, Mark MPorter at acsalaska.com
Thu Aug 5 16:04:36 CDT 2004


Actually, if it is my post you are mentioning, I said I ran across standards which suggested testing for the affirmative, not the 'positive' (and if I said 'positive', I really meant 'affirmative' and do apologize).

For your first example below, it would be correct in this viewpoint if Ralph is usually out of the house.

Again, it's not my convention.  Rather one I've seen around which would sometimes explain odd double-negative logic.

Mark

> -----Original Message-----
> From: dba-tech-bounces at databaseadvisors.com
> [mailto:dba-tech-bounces at databaseadvisors.com]On Behalf Of Haslett,
> Andrew
> Sent: Thursday, August 05, 2004 1:40 AM
> To: Discussion of Hardware and Software issues
> Subject: RE: [dba-Tech] On Odious Code
> 
> 
> Bit confused as to this issue..
>  
> So its just the syntax we're discussing, not not the logic?
>  
> I still don't see an issue with testing for nothing... The 
> original post
> suggested we t'est for the positive' instead, wihich I disagree with.
>  
> Consider:
>  
> If Ralph IS NOT 'AtHome' Then
>    'Ring Ralph on Mobile'
> End If
>  
> as oppsoed to:
>  
> If Ralph IS 'InCar' OR Ralph IS 'AtWork' OR Ralph IS 
> 'AtTheShop' OR Ralph IS
> 'AtTheFooty' etc...
>  
> .. Its obviously better to test for the negative in some cases...
>  
> Cheers,
> A
> 
>    _____  
> 
> From: Gustav Brock [mailto:gustav at cactus.dk]
> Sent: Wed 4/08/2004 4:50 PM
> To: Discussion of Hardware and Software issues
> Subject: Re: [dba-Tech] On Odious Code
> 
> 
> 
> Hi Arthur 
> 
> > .. so I guess I'm a pedant. 
> 
> You are. But take it as a positive label - there is too much 
> sloppiness around. 
> 
> /gustav 
> 
> _______________________________________________ 
> dba-Tech mailing list 
> dba-Tech at databaseadvisors.com 
> http://databaseadvisors.com/mailman/listinfo/dba-tech
> <http://databaseadvisors.com/mailman/listinfo/dba-tech>  
> Website: http://www.databaseadvisors.com 
> <http://www.databaseadvisors.com>  
> 
> 
> IMPORTANT - PLEASE READ ******************** 
> This email and any files transmitted with it are confidential and may 
> contain information protected by law from disclosure. 
> If you have received this message in error, please notify the sender 
> immediately and delete this email from your system. 
> No warranty is given that this email or files, if attached to this 
> email, are free from computer viruses or other defects. They 
> are provided on the basis the user assumes all responsibility for 
> loss, damage or consequence resulting directly or indirectly from 
> their use, whether caused by the negligence of the sender or not.
> 

***********************************************************************************
5/8/2004
This transmittal may contain confidential information intended solely for
the addressee. If you are not the intended recipient, you are hereby
notified that you have received this transmittal in error; any review,
dissemination, distribution or copying of this transmittal is strictly
prohibited. If you have received this communication in error, please notify
us immediately by reply or by telephone (collect at 907-564-1000) and ask to
speak with the message sender. In addition, please immediately delete this
message and all attachments. Thank you. ACS





More information about the dba-Tech mailing list