• tslnox@reddthat.com
    link
    fedilink
    arrow-up
    15
    ·
    1 year ago

    I’m not really a programmer but when I code something at work to make my job easier and I have to go before I finish it, I write a little comment for my future self to explain how I’m thinking at the moment, to help restore the flow.

    Usually it doesn’t work. :-D

    • jazir5@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Now you can try to get chatgpt to explain what it does. Or Facebooks code llama.

    • megane-kun@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 year ago

      Because my work tends to have me working on a wide variety of features, and thus operating on vastly different parts of the codebase, I make it a point to comment out every change I make complete with the ticket that requested the change, and what the intended effect of the change is.

      Cue me returning to piece of code I made (after the inevitable bug has arisen) and me staring at my own code changes in bewilderment, wondering what past me really wanted to do. Hahaha!

  • FUCKRedditMods@lemm.ee
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    Sometimes working at something for long enough puts you into like a fugue state. It’s like the opposite of “flow” where you just dumb down.

    ^This happens to me only when I had entered my dumbzone the previous shift

    • hexaflexagonbear [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      I stg sometimes conversations with my coworkers will give me memento disease and I have to go on a hunt for clues I lefy myself to figure out what I was working on 5 mins ago.

  • Elise@beehaw.org
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    //TODO write todo comments in your wip code.

    Your IDE will make them easy to find or you’ll just run into them.

  • brax@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    I always thought this was just a “me” thing. I’m so glad it’s not. I just wish my wife understood…

  • fosho@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    I understand and think the intended content is good. but who would post this with such an obvious layout flaw? it used to be posts with terribly distracting grammar whose intent was relatively easy to decipher. lately it feels like even more basic and obvious rules are being lazily ignored and even shared.

    WE LIVE IN A SOCIETY.

    • Numuruzero@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      I’ll be honest, for a minute I thought it was not a flaw but referring to “Monday Me, on Monday” which is a concept I can relate to

  • Cwilliams@beehaw.org
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    1 year ago

    I started using suspend on my dev laptop. I basically never close Neovim, and I write notes to myself about what the code does for the next time I open my laptop. I know that’s what comments are for, but whatever

  • Okalaydokalay@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    My boss has a morning meeting where we tell him what we’re working on for the day. And every Monday, this meeting is at 8:00 when my shift starts. I’m thankful my name makes me further down the list because I would be stumbling to get that.

    He’s a cool guy and not overly micromanager or anything, so it’s not a huge thing, but just reminded me seeing this meme.

    • pjhenry1216@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      For someone who gets paid hourly, I’m only willing to go so far with unpaid work past when I’m supposed to stop.