Friday, May 18, 2007

Exception handling and clutter log files

Ran across this in a client's today

try {...}
catch (Exception ex) {
LOGGER.error("updateDropShipPriceOnImport()", ex);
throw ex;
}

Now, why would you log the error only to rethrow it? I'd assume that if you're rethrowing it, something else is/should catch this and handle/log it. So then isn't this just unnecessary logging?

Tuesday, May 08, 2007

So you want to boycott the gas stations?

I'm sure you've received the chain letters complaining about the high cost of gasoline, asking us to all band together and not buy gas on a certain day. This is supposed to put a dent in the gas companies pockets. Kind of a "show 'em we're pissed and aren't going to take this lying down" type of action.

*LOL* It's not going to work.

If I were the gas company, you know what I'd do? I'd jack the price of gas up another 20% the day after this boycott. Ha! Jokes on us now isn't it?

There really isn't much we can do about it. The only people who can change it are the governments and they are clearly being paid off by the oil companies to do nothing.

If the cost of gas is really getting to you, re-evaluate your lifestyle and change it so you don't require as much gas.