Clever comment?
-
A timer is fired to attempt to recover a connection. At the end of the catch block where the connection has not been recovered is this comment:
// Better luck next time.
That made me chuckle at least...
-
A timer is fired to attempt to recover a connection. At the end of the catch block where the connection has not been recovered is this comment:
// Better luck next time.
That made me chuckle at least...
I've done maintenance on all kinds of weird code, even something like shown below:
private string ShouldIReturnTheStringOrJustNullAndLetThisDamnAccountBurn()
{
// catch-me-if-you-can,-for-i'm-long-gone type of code:
return null;
}private IDispose GetInstance()
{
var s = "I don't give a shit if it doesn't work!";
return (IDispose)s;
} -
I've done maintenance on all kinds of weird code, even something like shown below:
private string ShouldIReturnTheStringOrJustNullAndLetThisDamnAccountBurn()
{
// catch-me-if-you-can,-for-i'm-long-gone type of code:
return null;
}private IDispose GetInstance()
{
var s = "I don't give a shit if it doesn't work!";
return (IDispose)s;
}You're just making it up, and we can tell since strings aren't even disposable. (Of course, you are now going to hide behind the "something like" provision. I'll maintain whatever it was, it was "nothing like" what you've posted!)