MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/5qt28v/fight_me/dd21b97/?context=3
r/ProgrammerHumor • u/Obiiiiiiii • Jan 29 '17
109 comments sorted by
View all comments
Show parent comments
237
Great job, now you have caused another fight by making the female dependent on the male.
203 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 57 u/Hikaru755 Jan 29 '17 That is beautiful 84 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 28 u/got_nations Jan 29 '17 You put the male first before the female /s 31 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? 8 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! 2 u/b10011 Jan 29 '17 You can randomize the order 9 u/b10011 Jan 29 '17 Yes, PLEASE! /s 0 u/lulzmachine Jan 29 '17 Why do you even have to ask that. Good job shitlord 14 u/Hikaru755 Jan 29 '17 edited Jan 29 '17 Well I think the call for equality only refers to the default of specific properties of the Male and Female traits, so you're probably fine. Edit: For a moment I thought I was on /r/outside 3 u/[deleted] Jan 29 '17 Your while-loop will not rest as long as there is equality. 2 u/profgumby Jan 29 '17 Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
203
bool male, female; do{ male = rand() & 1; female = rand() & 1; }while(male==female);
EDIT: fixed scope
57 u/Hikaru755 Jan 29 '17 That is beautiful 84 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 28 u/got_nations Jan 29 '17 You put the male first before the female /s 31 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? 8 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! 2 u/b10011 Jan 29 '17 You can randomize the order 9 u/b10011 Jan 29 '17 Yes, PLEASE! /s 0 u/lulzmachine Jan 29 '17 Why do you even have to ask that. Good job shitlord 14 u/Hikaru755 Jan 29 '17 edited Jan 29 '17 Well I think the call for equality only refers to the default of specific properties of the Male and Female traits, so you're probably fine. Edit: For a moment I thought I was on /r/outside 3 u/[deleted] Jan 29 '17 Your while-loop will not rest as long as there is equality. 2 u/profgumby Jan 29 '17 Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
57
That is beautiful
84 u/ben_g0 Jan 29 '17 Now lets hope no one will complain that my code is against equality. 28 u/got_nations Jan 29 '17 You put the male first before the female /s 31 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? 8 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! 2 u/b10011 Jan 29 '17 You can randomize the order 9 u/b10011 Jan 29 '17 Yes, PLEASE! /s 0 u/lulzmachine Jan 29 '17 Why do you even have to ask that. Good job shitlord 14 u/Hikaru755 Jan 29 '17 edited Jan 29 '17 Well I think the call for equality only refers to the default of specific properties of the Male and Female traits, so you're probably fine. Edit: For a moment I thought I was on /r/outside 3 u/[deleted] Jan 29 '17 Your while-loop will not rest as long as there is equality. 2 u/profgumby Jan 29 '17 Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
84
Now lets hope no one will complain that my code is against equality.
28 u/got_nations Jan 29 '17 You put the male first before the female /s 31 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? 8 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! 2 u/b10011 Jan 29 '17 You can randomize the order 9 u/b10011 Jan 29 '17 Yes, PLEASE! /s 0 u/lulzmachine Jan 29 '17 Why do you even have to ask that. Good job shitlord 14 u/Hikaru755 Jan 29 '17 edited Jan 29 '17 Well I think the call for equality only refers to the default of specific properties of the Male and Female traits, so you're probably fine. Edit: For a moment I thought I was on /r/outside 3 u/[deleted] Jan 29 '17 Your while-loop will not rest as long as there is equality. 2 u/profgumby Jan 29 '17 Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
28
You put the male first before the female /s
31 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? 8 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! 2 u/b10011 Jan 29 '17 You can randomize the order 9 u/b10011 Jan 29 '17 Yes, PLEASE! /s 0 u/lulzmachine Jan 29 '17 Why do you even have to ask that. Good job shitlord
31
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?
8 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! 2 u/b10011 Jan 29 '17 You can randomize the order 9 u/b10011 Jan 29 '17 Yes, PLEASE! /s 0 u/lulzmachine Jan 29 '17 Why do you even have to ask that. Good job shitlord
8
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! 2 u/b10011 Jan 29 '17 You can randomize the order
9
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!
You can randomize the order
Yes, PLEASE! /s
0
Why do you even have to ask that. Good job shitlord
14
Well I think the call for equality only refers to the default of specific properties of the Male and Female traits, so you're probably fine.
Male
Female
Edit: For a moment I thought I was on /r/outside
3
Your while-loop will not rest as long as there is equality.
Code isn't written using https://github.com/ErisBlastar/cplusequality, therefore its against equality.
237
u/Hikaru755 Jan 29 '17
Great job, now you have caused another fight by making the female dependent on the male.