• XanXic@lemmy.world
    link
    fedilink
    arrow-up
    51
    ·
    edit-2
    1 year ago

    This happens so many times. I’m a pretty firm believer in walking away for 15 minutes is a crucial part of the debugging process. It’s just hard sometimes to know when to stop and stop trying shit for a bit.

    Also rubber duck debugging, I’ll talk to my dog but fuck it works so many times. Shes helpful.

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      1 year ago

      I used to talk to the graphic designer next to me. I work from home now, so my wife gets to play the role 24/7.

  • riplin@lemm.ee
    link
    fedilink
    English
    arrow-up
    31
    ·
    1 year ago

    And then you fix the bug, test and it and it still doesn’t work and it turns out you weren’t even calling the function in the first place. I’ve had that happen several times.

  • Ddhuud@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    1 year ago

    And when you’re wide awake you notice it was a dream, and there’s no “behave” statement in python.

  • lars
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    1 year ago

    If you know the line number, the bug is 99% solved

  • teclo@feddit.uk
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 year ago

    My zombie brain is my pair programmer. This happens to me so frequently that it no longer surprises me and I now chill and let my sub conscious work it out.

  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    1 year ago

    Remember to take care of yourself. Just because you have an idea doesn’t mean you have to test it right this second. You need breaks.

  • Alex@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    This is why I leave a couple of hours break between coding and going to bed. If I don’t I may well sleep but my dreams are full of repeating code that I don’t wake up rested. Any “insights” from the dreams are usually wrong as well ☹️

  • Bappity@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    this has happened to me after I spent weeks trying to fix a small thing it made me scream