• BillyClark@piefed.social
    link
    fedilink
    English
    arrow-up
    51
    ·
    2 months ago

    This does happen a lot, but have you ever had the opposite happen? Where you go into some of your older code, and not only is it nice to read, but you had anticipated that you’d have to make this change later, and so the design makes the change easy?

    That’s happened to me a few times and all I can say is that it takes days for my self-satisfaction to wane.

    • Landless2029@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      2 months ago

      This actually happened to me last month. I had to touch code from a previous team/project I was on.

      I got the call for a collaboration/consult. I forgot everything about it. Jumped in a meeting next day anyway. We pulled up the code. Everything was documented and I had a section with parameters for a “wish” feature that they actually wanted finally. I pointed it out and told them the needful to finish the feature.

      Thank you past me. I’ll have to buy you a drink.

      Then I had a nice 5pm Scotch.

  • SaharaMaleikuhm@feddit.org
    link
    fedilink
    arrow-up
    12
    ·
    2 months ago

    I am usually quite pleased with my old code. It ain’t perfect, but it’s doing well for itself. Sometimes there is silly stuff I need to fix, but then I just laugh at myself.

  • hdsrob@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 months ago

    2 months.

    I’ve been writing the same software since 2003.

    Someone left some real crap in there.

  • zeezee@slrpnk.net
    link
    fedilink
    arrow-up
    7
    ·
    2 months ago

    I like that this meme implies women and enbies write immaculate code and never regret what they’ve written before 😎

  • tiredofsametab@fedia.io
    link
    fedilink
    arrow-up
    7
    ·
    2 months ago

    I looked at code I wrote about a year ago today. Yeah, there are things I would’ve done differently now, but I had no trouble following it. Some of the choices I made were company standards at the time as well which, thankfully, have improved.

  • itsathursday@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    2 months ago

    Depending on the state of sleep deprivation and flow state, even waking up to the previous nights code is an out of body experience of shock and awe. Either I am surprised at the level of complexity and elegance with the rabbit hole that I went down or it’s a fragmented mess of FIXME placeholders that don’t communicate the brilliant ideas and plans from past me.

  • LillyPip@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 months ago

    But… document your code.

    Hahahaha for who?!?

    Uh… for future you!

    Me to future me: lol no