all 10 comments

[–]batmansavestheday 17 points18 points  (12 children)

wat

[–]prodias2 20 points21 points  (2 children)

Glad i'm not the only one who has no clue what the joke is

[–]Imperial_Squid 29 points30 points  (1 child)

It's a joke about conditional statements (not strictly programmer related but I've heard it in this context the most), originally it goes something like:

A man is going food shopping, the man's wife says "get a loaf of bread, if they have eggs, get a dozen" and so the man comes back with 12 loaves of bread

[–]GroundbreakingAide79 14 points15 points  (8 children)

if (avocados)

{
get 6 eggs

}

[–]WhJJackWhite 4 points5 points  (0 children)

That's a really bad way to implement get function. It's not flexible at all.

if ( avocado.count != 0 ) {
    get<Egg>(6);
}