Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!mephisto!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!philapd!ssp11!roelof From: roelof@idca.tds.PHILIPS.nl (R. Vuurboom) Newsgroups: comp.lang.c Subject: Re: #define OR || Summary: SayBro Message-ID: <632@ssp11.idca.tds.philips.nl> Date: 31 Jan 90 12:50:13 GMT References: <5940014@hpcupt1.HP.COM> <33889@ucbvax.BERKELEY.EDU> <1922@gmdzi.UUCP> Organization: Philips Telecommunication and Data Systems, The Netherlands Lines: 84 In article <1922@gmdzi.UUCP> wittig@gmdzi.UUCP (Georg Wittig) writes: > > [using preprocessor to redefine language] > > I know I fight on a losing battle; but it will not be easy to > missionize me. So let the flames begin ... > The following joke circulated in another group a while back: >From: schooler@venera.isi.edu Date: Tue, 25 Jul 89 18:12:57 -0700 Subject: california codin' Just wanted to check out that you gnarly dudes are using the latest and greatest software technology fer yer rad code to make it easy for the dudes who have to read it. The hip new way to write readable C code involves the use of a few simple defines. #define like { #define man ;} #define an ; #define SayBro /* #define CheckItOut */ SayBro like, this is some rad shit, so CheckItOut like a = b an c = d man SayBro , like who needs help from them compiler choads anyway? THIS is the way to write CLEAR code. I mean really! CheckItOut like SayBro this is ShellSort straight out of the white book, but in a readable form. CheckItOut man #define YoDude for( #define OK ) #define is = #define AND && #define as #define Do #define long #define some #define make #define shit #define FAROUT shell(v, n) SayBro sort v[0]...v[n-1] into increasing order CheckItOut int v[], n; like int gap, i, j, temp; YoDude gap is n/2 an as long as gap > 0 Do some shit an make gap /=2 OK YoDude i is gap an as long as i < n Do some shit an make i++ OK YoDude j is i - gap an as long as j >= 0 AND v[j] > v[j+gap] Do some shit an make j -= gap OK like temp is v[j] an v[j] is v[j+gap] an v[j+gap] is temp man FAROUT man SayBro like, B there OB square! CheckItOut Thanks to franklin a davis Thinking Machines Corp. Cambridge, MA 02142 617-876-1111 for putting it (again) on the net. -- The guy who said "The good die young" may have been talking about turkeys... Roelof Vuurboom SSP/V3 Philips TDS Apeldoorn, The Netherlands +31 55 432226 domain: roelof@idca.tds.philips.nl uucp: ...!mcvax!philapd!roelof