TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: BILL BIRRELL
from: JOHN GARDENIERS
date: 1998-05-23 22:15:00
subject: redundancy

            Hi Bill,
 -=> 18 May 98 06:35, Bill Birrell wrote to Tom Torfs <=-
 BB>     For me it isn't worth it - I'd rather live with the possibility of
 BB> a misassignment than turn programming into mumbo-jumbo, especially as
 BB> unintentional assignment is one of the errors that both MS and Zortech
 BB> (Symantec) compilers trap, so the ritual is not only irritating but
 BB> also redundant.
I'm also one of those who don't use the NULL==whatever method. Nevertheless, 
I can see it's value and have no trouble reading code where it's used. I do 
however regularly include assignments within tests, often to simplify the 
code. To my way of operating having the compiler flag warnings on such things 
is not only redundant, it's downright annoying and leads to restrictive 
coding practices.
 BB> When it is time to revise code, clarity is everything and the KISS
 BB> principle is worth its weight in gold. I know it only requires a
I fear that any revision to be carried out on a program should never be 
undertaken by someone who has even the slightest trouble reading code such as 
if(NULL==something). I think you, and others, are making a rather huge 
mountain out of this tiny little molehill. I don't believe that even a 
complete novice would have trouble once the reasoning behind it is explained 
to them, unless of course they lack the basic aptitude in the first place.
        ttyl,
            >>> Fuse (fuse@one.net.au) >>>
--- GoldED/386 3.00.Alpha4+
---------------
* Origin: The Cubby House, I C it but I don't believe it (3:634/391)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.