🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #237

Re: Turbo C wildcard expansion

#237
From: Can't ya tell by the name
Date: Tue, 31 Oct 1989 02:26
30 lines
2066 bytes
In article <89302.005130CMH117@PSUVM.BITNET> CMH117@PSUVM.BITNET (Charles Hannum) writes:
>ARGH!  That has to be some of the most convoluted code I have ever seen!  If
>you only have 1 statement in a block (an IF or ELSE clause, for example), there
>is *NO* reason to include begin and end-block braces!  It just makes the code
>longer and harder to read.
>
>Not being mean, but I like short and concise.


Not to start a discussion on this issue, but I have found that the
little extra space you use for this kind of coding saves hours of time
debuging.  I have help hundreds of people debug thier code and have
found that those who like thier code THAT short and concise are the
ones that have the mose difficult time debugging it. In fact thier
have been those who I would not help untill they "expanded and
formatted" thier code, and strange thing happened, they didn't need my
help - they found it themselves.

The most common reason for this is that without the begin and end
braces they add a line of code to the for/while/if statement and
forget to add the braces and . . . Well they are just to close to
the tree to see the forest.

I will not discuss this further in this group, but didn't want
possibly new programmers to think that because you could and
someone said you should that it was gospel, there are VERY good
reasons for doing it the way the original poster did.

flames to /dev/null or alt.religion.lang (or whatever that group is
that I find so amusing to read).
Technical Details
Message-ID: <127107@sun.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!apple!sun-barr!newstop!sun!looney!dopey
References: <3574@gouda.quad.com> <89302.005130CMH117@PSUVM.BITNET>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!apple!sun-barr!newstop!sun!looney!dopey
From: dopey%looney@Sun.COM (Can't ya tell by the name)
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc
Subject: Re: Turbo C wildcard expansion
Message-ID: <127107@sun.Eng.Sun.COM>
Date: 31 Oct 89 02:26:14 GMT
References: <3574@gouda.quad.com> <89302.005130CMH117@PSUVM.BITNET>
Sender: news@sun.Eng.Sun.COM
Reply-To: dopey@sun.UUCP (Can't ya tell by the name)
Organization: Sun Microsystems, Mountain View
Lines: 30