3

Looking at code from previous devs...which I now support...

Oh hey there is a function to retry connecting to the database if it fails to open...ok...

It doesn't return anything e.g. a boolean. Not a big deal I'll catch the exception...

It catches the exception and silently ignores it? WTF how do I know if it fails??

It keeps trying for 20 seconds...sounds reasonable...wonder how long it waits between failed attempts...0. No sleep, no back off, literally spams the open call as quick as it can throw the exception...

I'm glad I personally dont know them. They are fucking idiots.

Comments
Add Comment