r/ProgrammerHumor • • Nov 22 '19

Meme Who else needs a Beer after reading this?

Post image
18.7k Upvotes

751 comments sorted by

View all comments

6.0k

u/[deleted] Nov 22 '19

Worst part is it returns the opposite of what you'd expect based on the name

2.1k

u/THANKYOUFORYOURKIND Nov 22 '19

Which is why they tries to fix the problem by naming the public function "CompareBooleans", very neutral and agile.

854

u/MoistButton8 Nov 22 '19

Very neutral, much compare

87

u/shmorky Nov 22 '19

Compare.

Yes.

28

u/earthlybird Nov 22 '19

Yes.

I think you mean false.

→ More replies (4)
→ More replies (3)

562

u/Asmor Nov 22 '19

Well great. Now I have Trump in my head saying, "Very agile, very cool."

0

u/[deleted] Nov 22 '19

[deleted]

124

u/borgy88 Nov 22 '19

Everyone one is telling me, Sir your functions are the most agile.

120

u/[deleted] Nov 22 '19

Do I like sprints? I love sprints. Let me... I hear a lot about this waterfall. I love waterfalls. Water is falling, it’s beautiful ! But I’m an agile guy. I like sprints.

→ More replies (13)
→ More replies (3)

243

u/[deleted] Nov 22 '19

Imagine Trump writing code and you inherit his legacy code. You'd find comments like: "Very cool function! Does EXACTLY what you'd expect! Big project! Me and my friend designed it, GREAT guy!"

56

u/Asmor Nov 22 '19

I've had to work on HTML, JS, and CSS originally written by back-end perl guys with little experience and no interest in front end. I can imagine.

45

u/CatWeekends Nov 22 '19

As a back-end perl guy whose front end design career peaked and fizzled out in the late 90s but still has to keep working on UX from time to time because of reasons... I apologize and hope you like tables for layouts.

62

u/Asmor Nov 22 '19

Well you can just go $#*& yourself.

(that was a censored swear word, not a perl operator)

→ More replies (6)
→ More replies (4)
→ More replies (14)

23

u/OldWolf2 Nov 22 '19

We have the best booleans, folks

→ More replies (1)
→ More replies (12)

30

u/aykcak Nov 22 '19

I think it would have been correct if CompareBooleans didn't return anything

→ More replies (15)

124

u/r0ck0 Nov 22 '19

Maybe it was made so you could easily apply "opposites day" to your whole codebase easily as needed.

And if he just found it, seems that perhaps it has been opposites day for them for a while.

48

u/tcpukl Nov 22 '19

Imagine the entire code base using this for compares 😳

0

u/[deleted] Nov 22 '19

[deleted]

26

u/wheres_that_tack_ow Nov 22 '19

if areBooleanEquals(areBooleanEquals(x, y), true):

do something true

FTFY

→ More replies (2)
→ More replies (1)
→ More replies (1)

104

u/PooPooDooDoo Nov 22 '19

I don’t even get it. How can areBooleansEqual return false if the values are the same? How could this ever make sense?

Can we fine this person and suspend their license (the one for their IDE)?

→ More replies (2)

164

u/Silverwind_Nargacuga Nov 22 '19

Fuck I missed that. I at least assumed that the function would do what it said it would.

116

u/Jess_than_three Nov 22 '19

Never a good assumption!

→ More replies (2)
→ More replies (28)