While refactoring a massive chunk of old code, I found a rather curious section of code commented out that wasn't there the day before. Can you tell me what it means?

bool YoureObviouslyUpset = true;
try { int TO = 2; }
catch (MismatchException ME) {
    if (YoureObviouslyUpset)
        CaptureAllNegativity();
}
  • Realised my answer was missing something and added it on. – AHKieran Oct 17 at 15:42
  • 1
    The similarity between the Puzzling logo and the The Workplace logo is even more confusing with a title like that. – kasperd Oct 18 at 12:13
up vote 28 down vote accepted

Is the message:

"Try To Catch Me If You Can"?

Because:

The boolean variable and function have the initials YOU and CAN, and then there is a TRY on the variable TO with an exception CATCH for ME then an IF statement on the boolean YOU, which executes the function CAN if true, which it is.

try { int TO = 2; }
catch {

// this is what we do if we can't put 2 and TO together.

}

I'm thinking the answer is:

If you're unhappy also, and you're obviously upset (about something), so we need to talk about it and deal with it.
Presumably the author is upset about something that happened at work, sees that you are upset about it as well, and wants to talk to you about it to see if the hard feelings can be resolved.

Reasoning:

int TO = 2; // TO => ticked off, 2 => too (or also)
catch (MismatchException ME) // 2 as too is a string, so a string assigned to an int would be an exception, so catch ME (as in find me)
// MismatchException could also mean that the author and the reader clashed over something, or said differently, their opinions mismatched.
if (YoureObviouslyUpset) // YoureObviouslyUpset was set to true previously
CaptureAllNegativity(); // method call, essentially meaning "let's go somewhere else and talk about this"

  • int TO = 2; is valid, it is assigning an integer to a variable named "TO" – Katamari Oct 17 at 21:05

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.