• lowleveldata@programming.dev
    link
    fedilink
    English
    arrow-up
    165
    ·
    24 days ago

    As a programmer we sometimes might look like we are not doing much from the outside but actually we’re dead inside thank you

  • Yondoza@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    88
    ·
    24 days ago

    I honestly needed to hear this today, so thank you. I’m at work trying to work out someone else’s uncommented code and have just been staring at it mumbling to myself. I’m new to the position so I’m anxious my new coworkers will think I’m just dicking around… This is the validation I needed. Thanks everyone!

    • kersploosh@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      69
      ·
      24 days ago

      Say out loud to yourself, “What the hell is this?” or, “Why did they do it this way?” once in a while. Everyone around will think you know exactly what you’re doing.

    • ElCanut@jlai.lu
      link
      fedilink
      English
      arrow-up
      8
      ·
      24 days ago

      From what I learned in my workplace, it seems that for most people the best way to appear competent is to continuously criticize the work of your colleagues

    • daddy32@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      23 days ago

      I don’t know your circumstances, but it is usually OK to just ask. Especially if the original author is around. Don’t do it all the time and you’ll be OK. Even can come with positive image out of it, if you ask the right questions.

      Other than that, I found that the current llms like ChatGPT (and perhaps Claude) are very good at explaining code, most of the time, for some languages ;)

      • Yondoza@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        ·
        23 days ago

        Hey, thanks for your concern. I’m asking tons of questions, don’t worry. Unfortunately the last 3 keepers of this code are no longer around to ask, thus the staring at code.

        • nephs
          link
          fedilink
          English
          arrow-up
          2
          ·
          23 days ago

          Sounds like, at the very least, a yellow flag to me. Be aware that there may be other stuff broken in their processes other than legacy code. :)

  • Lmaydev@programming.dev
    link
    fedilink
    English
    arrow-up
    65
    ·
    24 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
      ·
      4 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
      ·
      24 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
      ·
      24 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.

  • dependencyinjection@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    40
    ·
    24 days ago

    A true software developer will also raise their hands in celebration when they finally solve a problem that’s been plaguing them.

    Even if you’re working from home, alone.

  • Palacegalleryratio [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    29
    ·
    24 days ago

    My personal favourite is to break from staring after 30 mins, exclaim, “Hang on, we’re going about this completely back to front!” then spend the next hour deriving from first principles, only to arrive back at the original problem, but now with slightly different notation. At which point I realise that all I’ve done is get myself back to my starting point… Then it’s back to the staring.

      • 🐍🩶🐢@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        23 days ago

        I wish I understood how to use them. I have half written scraps of paper and random text in random text files. Notebooks are about the best I can do. I can’t write very well on a vertical board. It is really really uncomfortable and I end up obsessing on how bad it looks over solving the problem. Sometimes drawing on my iPad instead works, but that is another place to look for things.

        I do like using Markdown + Mermaid. Obsidian is a nice little note taking app once I got it configured. It just takes me forever.

        • Maggoty@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          23 days ago

          They have smaller white boards you can just prop up at a nice angle on your desk. These are what I use. Bigger ones that have to hang are for scheduling because I also black hole anything more than a week away. Also the white board is just off loading my thoughts so people can’t interrupt me so badly. I still use note taking apps for tracking completed thoughts or things I have to come back to.

  • corsicanguppy@lemmy.ca
    link
    fedilink
    English
    arrow-up
    27
    arrow-down
    1
    ·
    24 days ago

    Aside from “learning to spell hypnotized or just trusting your phone knows better than you,” there are a bunch of tricks we use.

    1. Staring at it and going over the code path
    2. Talking to a proverbial duck
    3. Going out for a proverbial cheeseburger
    4. Sleeping on it

    Half of these tricks force the brain to stop confirming and start seeing, which is our biggest error source. The rest of these tricks let the problem ruminate in our subconscious which is sometimes really good at solving shit.

    • qprimed@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      edit-2
      23 days ago

      1, 3 and 4 (in that exact order) have almost always gotten things moving again. rubber ducking it just feels “forced” to me.

    • tooclose104@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      23 days ago

      Haven’t heard of the proverbial cheeseburger… gonna stare at this phrase for a bit.

        • tooclose104@lemmy.ca
          link
          fedilink
          English
          arrow-up
          1
          ·
          23 days ago

          I dunno, I don’t like unnecessarily interacting with strangers. I’m gonna go sit in another room and tinker with something else for now.

  • perishthethought@lemm.ee
    link
    fedilink
    English
    arrow-up
    22
    ·
    24 days ago

    I used to work in an office with 4 other developers. It was a common occurrence to have the lights go off in the room, for energy saving.

    Simone would wave their arm, then go back to staring.

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      11
      ·
      24 days ago

      At least they’re moving. Sometimes it goes off and nobody reacts at all.

      Sometimes figuring out what you’re supposed to do is most of the project.

    • model_tar_gz@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      23 days ago

      I work in a dedicated room in my house (remote developer). During the day I don’t really need to turn the lights on—windows and a skylight. The sun sets and sometimes I really just don’t notice. My wife will come in at some point and scold me for working in the dark, claiming it’s bad for my eyes (as if staring at a screen all day isn’t already).

      I actually rather enjoy that rather not-subtle marker of the passage of time and how entrancing “the zone” can be such that I fail to even notice that.

  • justme@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    20
    ·
    24 days ago

    My math teacher in high school always said “math is 90% looking” and if you didn’t get the task directly: “look again” … Funny part is, that actually worked for most of the class xD

    • The Giant Korean@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      24 days ago

      100%. Really, just go do something other than what you’ve been focusing on, then come back to it. When I was coding, I would go take a walk when I’d get stuck. 9 times out of ten the answer would pop into my head when I’d stepped away. A few times I even dreamed of the answer while sleeping.

  • rockerface@lemm.ee
    link
    fedilink
    English
    arrow-up
    17
    ·
    24 days ago

    I refer to the process as “loading” and it helps so much when coding, debugging or even playing puzzle games

  • GreyEyedGhost@lemmy.ca
    link
    fedilink
    English
    arrow-up
    17
    ·
    23 days ago

    I had a theoretical math professor. He said something along the lines of, “Being a theoretical math professor is the best job in the world. You can lean back in your chair, put your feet on your desk and close your eyes, and no one can tell if you’re working or having a nap.”

  • Hugh_Jeggs@lemm.ee
    link
    fedilink
    English
    arrow-up
    16
    ·
    23 days ago

    Tbh a good builder/technician will do this too when faced with a complicated fix

    Same thing; every action has an opposite reaction, whether it’s code or physical engineering

    • Swemg@lemm.ee
      link
      fedilink
      English
      arrow-up
      7
      ·
      23 days ago

      I’m a carpenter, I do high end stuff for rich people with really expensive pieces of wood. I’ll stare as much as I need to on the issues I have or even before starting anything. Need to think about every way it could go wrong.