Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
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.
rant