28
samsepiol
91d

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
  • 1
    catch {
    console.info('Problem averted, have a nice day!');
    }
  • 0
    The chase is better then the catch
  • 2
    That's nothing, son.
  • 3
    dude, when i do a search for "TODO" in production, I get 2744 hits.
  • 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