Ellen sends us a very simple WTF today, that she found in production code.

bool condition;

try
{
    condition = true;
}
catch
{
    condition = false;
}

It’s true, there isn’t much to say about this exceptional code block. But if assigning a boolean to a boolean variable ever fails, we’re prepared to handle it.

Remy Porter

Source link

You May Also Like

Ripping the Headlines Today – Paul Lander, Humor Times

Making fun of the headlines today, so you don’t have to The…

‘Inside Out 2’ Trailer Reveals Maya Hawke Will Be Voicing New Character Called Nepotism

LOS ANGELES—With the child of Hollywood royalty clinching the role through the…

Iowa State Fair 2023: Interviews – Dean Kaner, Humor Times

Wherein our intrepid talk radio show host interviews Republican candidates for president…

What are these, fruits and vegetables for ants?!?! (35 Photos)

Camry Source link