try. {. doThing();. }. catch. {. doThing();. }

try
{
doThing();
}
catch
{
doThing();
}

Black Rifle Cuck Company, Conservative Humor Shirt $21.68

Yakub: World's Greatest Dad Shirt $21.68

Black Rifle Cuck Company, Conservative Humor Shirt $21.68

  1. 3 weeks ago
    Anonymous

    no, is like
    function doStuff() {
    try{
    // Stuff
    } catch {
    doStuff
    }
    }

  2. 3 weeks ago
    Anonymous

    Why not just
    while (true) {
    try {
    doThing();
    break;
    } catch (Throwable ignored) {
    // no-op
    }
    }

    then

    • 3 weeks ago
      Anonymous

      no, is like
      function doStuff() {
      try{
      // Stuff
      } catch {
      doStuff
      }
      }

      doesn't have the same behavior
      op's code only retries once

      • 3 weeks ago
        Anonymous

        But if it failed once it may fail the second time. It needs to be retried until it succeeds.

        • 3 weeks ago
          Anonymous

          sometimes you do not want that
          anyway if you were actually building a robust thing you would:
          1) not use exceptions
          2) do a limited amount of retries, maybe with exponential backoff depending on what you're trying to do

          • 3 weeks ago
            Anonymous

            You are talking about a proper solution. But look at OP's code (and the image he decided to post). It's already too moronic, beyond any salvation, so my solution just emphasizes OP's moroniation.

          • 3 weeks ago
            Anonymous

            >painstakingly devise O(logn) algorithm
            >retry it with exponential backoff
            Why are SWEs like this?

          • 3 weeks ago
            Anonymous

            you are mistaken; O(long) comes from the Software Developer, exponential backoff comes from the Systems Engineer.

          • 3 weeks ago
            Anonymous

            [...]
            doesn't have the same behavior
            op's code only retries once

            "blah blah blah! i'm a big maricón!"
            grow up homosexual

          • 3 weeks ago
            Anonymous

            >maricón
            this is all i can think of https://www.youtube.com/watch?v=ZPcyno4CiL8

          • 3 weeks ago
            Anonymous

            thanks for confirming you're a homosexual

          • 3 weeks ago
            Anonymous

            youre welcome :3

          • 3 weeks ago
            Anonymous

            homosexual

          • 3 weeks ago
            Anonymous

            youre not? uwu

          • 3 weeks ago
            Anonymous

            no, homosexual

          • 3 weeks ago
            Anonymous

            why keep replying to the homosexual then? o.o

          • 3 weeks ago
            Anonymous

            homosexual

          • 3 weeks ago
            Anonymous

            anon... im starting to think that it makes you feel good when you call me a homosexual. what other things do you like doing with homosexuals that make you feel good?

          • 3 weeks ago
            Anonymous

            Nta but
            >dont feed the trolls
            >dont look at the troll
            >hide the troll posts
            Why do you keep spamming ? I thought you/we homos were above this.
            Make thia board great again

          • 3 weeks ago
            Anonymous

            it's called having fun

          • 3 weeks ago
            Anonymous

            >do a limited amount of retries
            lemao
            >software gets a bug
            >only happens on the first try
            >nobody notices because automatic retry makes it werk
            >nobody reads the fricking log if your SW doesn't crash, don't kid yourself
            >SW runs twice as slow forever
            Frick recovery code. Fail early and fail hard.

      • 3 weeks ago
        Anonymous

        I think the recursion is the point of the joke lol.

  3. 3 weeks ago
    Anonymous

    void doNothing(){
    }

  4. 3 weeks ago
    Anonymous

    try:
    doNothing()
    except Exception as e:
    doNothing()
    else:
    doNothing()
    finally:
    win()

  5. 3 weeks ago
    Anonymous

    I've done your mom the other y

  6. 3 weeks ago
    Anonymous

    try
    {
    main();
    }
    catch
    {
    while(1)
    {
    printf("AAAAAAAAAAHHHHHHHn");
    }
    }

  7. 3 weeks ago
    Anonymous

    what the sigma

  8. 3 weeks ago
    Anonymous

    bool success = do_thing();
    if (!success) {
    success = do_thing();
    if (!success) {
    do_thing();
    }
    }

  9. 3 weeks ago
    Anonymous

    Lemme guess, you need more?
    lol:for (;;) {
    try {
    doThing();
    } catch (Exception e) {
    continue lol;
    }
    }

Your email address will not be published. Required fields are marked *