🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.folklore.computers
1 messages
1 total messages Started by be... AKA Solitair Fri, 12 Oct 1990 10:24
Re: Ugly source contest
#5143
Author: 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."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads