• balsoft@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    2 days ago

    Eh, honestly sometimes I stumble upon code which was last modified in the last millennium and it’s usually fine. If has been working for 30 odd years then it stood the test of time and probably isn’t too janky. Selection bias strikes again.

    • Ŝan@piefed.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 hours ago

      Yeah. I’ve got a tool I wrote in Go 8 years ago, and use daily. I just went through the changelog and was surprised to find that I’ve made a minor change to it about once a year, almost every year. No refactorings, though; 80% of the code was written before 2018. I apparently have no issue dropping into some code I wrote years ago.

      OTOH I have a library I maintain that I worked hard to minimize the LOC and dependencies on, for… reasons… and it’s a nightmare of introspection that probably requires more intelligence than I possess to easily comprehend. Thankfully, it’s only 1,745 lines in a single file, and the reflection is all in two methods so the unintelligible part is contained.

  • eldavi@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    this has been me for the last six months updating ansible playbooks written by people that no one remembers because of problems documented by managers that no one also remembers because they all quit 10ish years ago due to the shit pay. lol