27

Just found a
catch {
// TODO: correctly handle exceptions
}

In production code.

Comments
  • 0
    Nice
  • 1
    "I test my code in prod" - YOLO Dev
  • 2
    Catch is still better than a crash
  • 2
    catch {
    console.info('Problem averted, have a nice day!');
    }
  • 0
    The chase is better then the catch
  • 1
    That's nothing, son.
  • 0
    @zemaitis
    If a crash isn't a potential safety-issue or can destroy expensive equipment, just crashing is almost always better than ignoring the error and continuing to corrupt or work with corrupt data.
  • 0
    Yeah... Someone heard about C coding standards but doesn't understand them. Configure your VCS so it would reject any commit that includes FIXME or TODO comments.
  • 0
    I've seen worse 😒
Add Comment