• csm10495
    link
    fedilink
    arrow-up
    42
    arrow-down
    1
    ·
    edit-2
    1 year ago

    You know at least it printed an error. I hate when things silently swallow errors.

    I’m looking at you, Python programmers:

    try:
       <100 lines of nonsense>
    except:
       pass
    
    • Dandroid@dandroid.app
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I am in the process of fixing a bug at work where pretty much every method has a try(Exception e){…}catch{LOGGER.error(…)}. The method calling my team’s method needs to know when an interrupted exception is thrown. So far I have fixed this in 10 different methods, and we keep finding more. It’s like playing whack-a-mole.

    • fibojoly
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      That’s just horrible programmers in general. Try/catch and release, instead of figuring out what’s wrong. Surely that’s not gonna blow in someone’s face…