13
dotomaz
8y

When you've spent hours debugging a problem of session not being saved and there is no error. And then you find this in the code:

try{
save_session();
}catch(Exception $e){}// added by another member of the team

🙈😖🖕🏻

Comments
  • 0
    Nooooooo!
  • 2
    Did they add that comment too? Cuz that would be somethin'
  • 0
    Yup. He did!
  • 1
    when you fail silently, some other developer dies silently...
  • 2
    I love when I see our company's code base riddled with
    catch (Exception ex) { throw ex; }
    everywhere. It's almost like anyone else understands exception handling!
  • 0
    gonna be fun times when PHP 7.1 is mainstream.. one can catch multiple exceptions at one try ... :)
Add Comment