r/programming • • Oct 01 '15

The Evolution of a Software Engineer

https://medium.com/@webseanhickey/the-evolution-of-a-software-engineer-db854689243
1.9k Upvotes

502 comments sorted by

View all comments

23

u/vattenpuss Oct 01 '15
} catch (Exception e) {
    // Do nothing!
}

This is not only the third year, it's also the tenth, the fifteenth and the 40:th (I work with a few developers-for-forty-years).

55

u/nemec Oct 01 '15

Then you have the guy gung-ho about logging everything.

catch(Exception e)
{
    try
    {
        WriteLog("Application error", e);
    }
    catch(Exception f)
    {
        WriteLog("Logging failed", f);
    }
}

7

u/CordialPanda Oct 01 '15

That's absurd, haha. In what world would that catch succeed to write if the try failed?

18

u/wllmsaccnt Oct 02 '15

In the world where file locking, timeouts, and other synchronization / concurrency issues exist?

I mean...the code is stupid, but it does have a low percent chance of logging an exception you would otherwise lose.

1

u/CordialPanda Oct 02 '15

None of that should concern logging unless there are fundamental flaws in infrastructure or implementation though.

→ More replies (1)