• sexual_tomato@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    3
    ·
    55 minutes ago

    I always leave my project in a state where it doesn’t compile or run (not commits, obvs) so I’m forced back into understanding exactly what I was doing when I left off to fix the error.

  • N.E.P.T.R@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    7
    ·
    4 hours ago

    Even if documentation can be time-consuming, it is such a lifesaver and makes the whole process of coding much smoother. It means not as much time wasted backtracking. If you think there is any part of your code you won’t understand when you coming back to it, document, document, document.

    Sometimes I write some multiline psuedocode comments or/and an explaination of specific choices, especially those invisible choices you make while debugging that aren’t apparent when your just reading through your code.

    Good thing to do is make code that is generally readable too lol.

    • king_tronzington@lemm.ee
      link
      fedilink
      arrow-up
      44
      ·
      19 hours ago

      Pro tip: Keep a log of your work in a text file. I write a few bullet points for each day and on Friday write a “Next Week” section for my todos on that following Monday. Helps reduce the cognitive load of trying to remember what the hell you were about to do next.

      • thebestaquaman@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        7 hours ago

        I actually enjoy this part, where I’ve written some intricate code of sorts and get to spend some time writing a memo that explains how it works.

        I usually don’t even end up reading them, because the process of writing a good memo will make me remember it.

      • toynbee@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        9 hours ago

        AKA a WAR, which is an unnecessarily aggressive acronym for “weekly action report.”

      • Landless2029@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        14 hours ago

        I sort of do this in a block comment at the top of some scripts I write.

        Changelog for Completed Stuff and Future Features for todo

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        13
        ·
        edit-2
        11 hours ago

        I write down my current/next thoughts on a Post-It and stick it to my keyboard for Monday Noodle.

  • limer@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    13
    ·
    15 hours ago

    I secretly have forgotten a lot of the working code I wrote months ago; and whenever someone asks, I need to go back and read it like new

  • 3dmvr@lemm.ee
    link
    fedilink
    English
    arrow-up
    19
    ·
    19 hours ago

    Its always like 3 hours to remember why I was doing what I was doing, just to scrap it because the core is all wrong.

  • Crazyslinkz@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    18 hours ago

    If only there were some way to leave some sort of … what’s it called a comment maybe 🤔 idk…

    /s

  • agentshags@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    17 hours ago

    Me coming back to my run of ‘luck be a landlord’ and trying to figure out what strategy I was even thinking of, when I witness the chaos I left myself as I press ‘continue’…