• tslnox@reddthat.com
    ·
    9 months 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

    • megane-kun@lemm.ee
      ·
      edit-2
      9 months 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!

    • jazir5@lemmy.ml
      ·
      9 months ago

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