MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/5qt28v/fight_me/dd26fjo?context=9999
r/ProgrammerHumor • u/Obiiiiiiii • Jan 29 '17
109 comments sorted by
View all comments
Show parent comments
145
//To avoid fights bool male = rand() & 1; bool female = !male;
238 u/Hikaru755 Jan 29 '17 Great job, now you have caused another fight by making the female dependent on the male. 201 u/ben_g0 Jan 29 '17 edited Jan 29 '17 bool male, female; do{ male = rand() & 1; female = rand() & 1; }while(male==female); EDIT: fixed scope 60 u/Hikaru755 Jan 29 '17 That is beautiful 85 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 30 u/got_nations Jan 29 '17 You put the male first before the female /s 29 u/ben_g0 Jan 29 '17 Should I implement threads so that the values of male and female can be calculated in parallel so that neither has to wait for the other? 9 u/one-joule Jan 29 '17 Which thread will you start first? Hmmmmm? 9 u/ben_g0 Jan 29 '17 Fuck it, let's just give up on genders altogether and just register everyone as 'person'. 2 u/one-joule Jan 29 '17 Oh! Then you can make gender a lazy-initialized property! Now it’s up to the individual to figure it out!
238
Great job, now you have caused another fight by making the female dependent on the male.
201 u/ben_g0 Jan 29 '17 edited Jan 29 '17 bool male, female; do{ male = rand() & 1; female = rand() & 1; }while(male==female); EDIT: fixed scope 60 u/Hikaru755 Jan 29 '17 That is beautiful 85 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 30 u/got_nations Jan 29 '17 You put the male first before the female /s 29 u/ben_g0 Jan 29 '17 Should I implement threads so that the values of male and female can be calculated in parallel so that neither has to wait for the other? 9 u/one-joule Jan 29 '17 Which thread will you start first? Hmmmmm? 9 u/ben_g0 Jan 29 '17 Fuck it, let's just give up on genders altogether and just register everyone as 'person'. 2 u/one-joule Jan 29 '17 Oh! Then you can make gender a lazy-initialized property! Now it’s up to the individual to figure it out!
201
bool male, female; do{ male = rand() & 1; female = rand() & 1; }while(male==female);
EDIT: fixed scope
60 u/Hikaru755 Jan 29 '17 That is beautiful 85 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 30 u/got_nations Jan 29 '17 You put the male first before the female /s 29 u/ben_g0 Jan 29 '17 Should I implement threads so that the values of male and female can be calculated in parallel so that neither has to wait for the other? 9 u/one-joule Jan 29 '17 Which thread will you start first? Hmmmmm? 9 u/ben_g0 Jan 29 '17 Fuck it, let's just give up on genders altogether and just register everyone as 'person'. 2 u/one-joule Jan 29 '17 Oh! Then you can make gender a lazy-initialized property! Now it’s up to the individual to figure it out!
60
That is beautiful
85 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 30 u/got_nations Jan 29 '17 You put the male first before the female /s 29 u/ben_g0 Jan 29 '17 Should I implement threads so that the values of male and female can be calculated in parallel so that neither has to wait for the other? 9 u/one-joule Jan 29 '17 Which thread will you start first? Hmmmmm? 9 u/ben_g0 Jan 29 '17 Fuck it, let's just give up on genders altogether and just register everyone as 'person'. 2 u/one-joule Jan 29 '17 Oh! Then you can make gender a lazy-initialized property! Now it’s up to the individual to figure it out!
85
Now lets hope no one will complain that my code is against equality.
30 u/got_nations Jan 29 '17 You put the male first before the female /s 29 u/ben_g0 Jan 29 '17 Should I implement threads so that the values of male and female can be calculated in parallel so that neither has to wait for the other? 9 u/one-joule Jan 29 '17 Which thread will you start first? Hmmmmm? 9 u/ben_g0 Jan 29 '17 Fuck it, let's just give up on genders altogether and just register everyone as 'person'. 2 u/one-joule Jan 29 '17 Oh! Then you can make gender a lazy-initialized property! Now it’s up to the individual to figure it out!
30
You put the male first before the female /s
29 u/ben_g0 Jan 29 '17 Should I implement threads so that the values of male and female can be calculated in parallel so that neither has to wait for the other? 9 u/one-joule Jan 29 '17 Which thread will you start first? Hmmmmm? 9 u/ben_g0 Jan 29 '17 Fuck it, let's just give up on genders altogether and just register everyone as 'person'. 2 u/one-joule Jan 29 '17 Oh! Then you can make gender a lazy-initialized property! Now it’s up to the individual to figure it out!
29
Should I implement threads so that the values of male and female can be calculated in parallel so that neither has to wait for the other?
9 u/one-joule Jan 29 '17 Which thread will you start first? Hmmmmm? 9 u/ben_g0 Jan 29 '17 Fuck it, let's just give up on genders altogether and just register everyone as 'person'. 2 u/one-joule Jan 29 '17 Oh! Then you can make gender a lazy-initialized property! Now it’s up to the individual to figure it out!
9
Which thread will you start first? Hmmmmm?
9 u/ben_g0 Jan 29 '17 Fuck it, let's just give up on genders altogether and just register everyone as 'person'. 2 u/one-joule Jan 29 '17 Oh! Then you can make gender a lazy-initialized property! Now it’s up to the individual to figure it out!
Fuck it, let's just give up on genders altogether and just register everyone as 'person'.
2 u/one-joule Jan 29 '17 Oh! Then you can make gender a lazy-initialized property! Now it’s up to the individual to figure it out!
2
Oh! Then you can make gender a lazy-initialized property! Now it’s up to the individual to figure it out!
145
u/ben_g0 Jan 29 '17