🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #5143

Re: Ugly source contest

#5143
From: be... AKA Solitair
Date: Fri, 12 Oct 1990 10:24
18 lines
1236 bytes
>I found this masterpiece in a piece of code i was looking through yesterday.
>
> system("printenv PRINTER > /tmp/caption.tmp");
> in = fopen("/tmp/caption.tmp","r");
> fgets(default_printer,30,in);
> if(strlen(default_printer)>0)

That, I consider "structured" programming, I definitly :-) would have coded
the last line as:    if(strlen(default_printer))

>and the rest of the code isn't in much better shape.
>--
>!Thomas Grennefors               ! proud member off THHS krfc (tlps)
--
Sincerely,                 berg%cip-s01.informatik.rwth-aachen.de@unido.bitnet
           Stephen R. van den Berg.
"I code it in 5 min, optimize it in 90 min, because it's so well optimized:
it runs in only 5 min.  Actually, most of the time I optimize programs."
Technical Details
Message-ID: <3581@rwthinf.UUCP>
Path: mbox-mo1.pugleaf.net!gmdzi!unido!rwthinf!cip-s08!berg

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!gmdzi!unido!rwthinf!cip-s08!berg
From: be...@cip-s08.informatik.rwth-aachen.de (AKA Solitair)
Newsgroups: alt.folklore.computers
Subject: Re: Ugly source contest
Message-ID: <3581@rwthinf.UUCP>
Date: 12 Oct 90 10:24:02 GMT
Sender: news@rwthinf.UUCP
Reply-To: berg%cip-s01.informatik.rwth-aachen.de@unido.bitnet
Lines: 18
Posted: Fri Oct 12 11:24:02 1990
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit