• Lmaydev@programming.dev
    link
    fedilink
    English
    arrow-up
    65
    ·
    26 days ago

    I find for coding problems it’s actually better to walk away and let it tick over in your mind.

    You’ll often get a shower thought type moment.

    • lennivelkant@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 days ago

      Me, staring at my code, fiddling around, retrying it over and over: “WHY WON’T YOU WORK, DAMMIT?”

      Me, late at night, trying to sleep, suddenly wide awake: “Oh that’s why!”

      Me, the next morning, staring at my code: “…what was it again?”

    • SUPAVILLAIN
      link
      fedilink
      English
      arrow-up
      3
      ·
      26 days ago

      Nothing more enchanting than when the answer to your coding problem literally comes to you in a dream. Had an array issue in C++ where I literally woke up saying "I don’t need a ghost array to search after all is said and done, it’s already sorted!"

    • blaue_Fledermaus@mstdn.io
      link
      fedilink
      arrow-up
      1
      ·
      26 days ago

      Once, the answer to a problem that was stumping me came while driving in the middle of nowhere at 01:00am back from a weekend trip.