From: winsor@geek.NoSubdomain.NoDomain (js)
Newsgroups: soc.bi
Subject: Re: Homophobic garbage
Date: 12 Nov 1992 19:28:37 GMT
Organization: Texas Instruments Incorporated, Austin
Distribution: world
NNTP-Posting-Host: geek.teng.ppd.ti.com

In article <1ds6faINNcfd@agate.berkeley.edu>, rsr@soda.berkeley.edu (Roy S. Rapoport) writes:
|> In article <1drpvtINNn3o@cuda.add.itg.ti.com> winsor@geek.NoSubdomain.NoDomain (js) writes:
|> 
|> ->main() {
|> ->int sex, MALE;
|> ->
|> ->sex=rand();
|> ->
|> ->if (!MALE) then
|> ->	printf("%s",have_sex(cool));
|> ->else
|> ->	printf("%s",have_sex(freak));
|> ->
|> ->exit(TRUE);
|> ->}
|> ->
|> ->----->kinda stupid ain't it?  How many *semantic* errors can you find?
|> 
|> 1)   You need to include <stdio.h> if you're using printf
|> 2)   Symbolic constants are all upper-case.  Automatic variables (MALE) are
|>      not. (OK, it'll work.  It's still not PC).
|> 3)   MALE will come in with a random number between the lowest integer and the 
|>      highest ... so the chances of it being 0 (so !MALE is true) are very very
|>      small.
|> 4)   You don't have 'then' in C.
|> 5)   You didn't define have_sex().
|> 6)   You didn't define cool or freak.
|> 7)   You didn't define TRUE.
|> 8)   Your tab style sucks (I'd have deducted some points, but then again, I'm
|>      anal-retentive).
|> 9)   You didn't seed the random function.
|> 10)  rand() is much less reliable than random()
|> 11)  You never used sex for anything (and isn't that an oft-heard complaint
|>      from the fundies?)
|> 
|> Now, then ... for my implementation.  
|> 
|> ---
|> #include <stdio.h>
|> 
|> /* Mundane number of partners is assumed for the benefit of the original
|>    poster 
|> */
|> int partner_1 ; 
|> int partner_2 ; 
|> 
|> /* Mundane number of genders is assumed for the benefit of the original 
|>    poster
|> */
|> #define MALE 1
|> #define FEMALE !MALE
|> 
|> char *approval(void) {
|> 	if (partner_1 == partner_2) {
|> 		/* Same-sex */
|> 		if (partner_1 == MALE) {
|> 			/* Fags */
|> 			return ("Y'all are freaks and will burn in hell!") ; 
|> 		}
|> 		else {
|> 			/* Dykes */
|> 			return ("Y'all are so hot! I'm joining you!") ; 
|> 		}
|> 	}
|> 	else {
|> 		/* Breeders */
|> 		return("Y'all are OK.") ; 
|> 	}
|> }
|> 		
|> main(void) {
|> 
|> 	/* Initialize the random function */
|> 	srandom(time(0)) ; 
|> 
|> 	partner_1 = random() % 2 ; 
|> 	partner_2 = random() % 2 ; 
|> 
|> 	printf("%s\n", approval()) ; 
|> }
|> 
|> ---
|> 
|> Granted, this will yield heterosexual couples 50% of the time (Chance of
|> having a lesbian couple: .5 * .5 = .25.  Chance of having a gay couple: .5 *
|> .5 = .25.  Chance of having a same-sex couple = .25 + .25 = .5.  Chance of
|> having a het couple: 1 - P(same-sex) = 1 - .5 = .5).
|> 
|> So, Mike ... 
|> Do I get a hug?


I don't know about Mike, but here's a 

*slurpy hug*

from me...

_Well Done_ Roy!  Even tho your implementation actually seems to have a point to
it, whereas mine had none.  Which is *exactly* the point.  Some flaky psuedo code
without any facts #included, GRAMMATICAL convensions ignored, undocumented
conclusions(), illegal constructs, etc....

oh, and my the way... the #inclusion of <stdio.h> is compiler dependent, as to
whether it will work or not.  But, points *should* be deducted for assuming that
the compiler is Microsoft (*uncontrollable hacking dry-heave*) or some such drek
that gets programmers used to sloppy code.

hmmm.... mabe I'll pass your version through lint.

But then, not even Microsoft would compile *mine*.

*hug* (again)
js
Newsgroups: soc.bi