Europe Pub
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.cafe to Programmer Humor@programming.devEnglish · 15 天前

When you're working on a file that was last updated six years ago

message-square
22
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
441

When you're working on a file that was last updated six years ago

cm0002@lemmy.cafe to Programmer Humor@programming.devEnglish · 15 天前
message-square
22
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or # to comment.
  • axEl7fB5@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 天前

    Can’t relate, unless you’re editing .gitignore or LICENSE files for some reason.

  • Drekaridill@feddit.is
    link
    fedilink
    arrow-up
    72
    ·
    15 天前

    I inherited code that contained files that were last updated in 1997

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      48
      ·
      15 天前

      That isn’t a bad thing. On the contrary, according to the open-closed principle, you should strive for writing code you never have to touch again.

      • magic_lobster_party@fedia.io
        link
        fedilink
        arrow-up
        57
        ·
        15 天前

        There’s a difference between ” it hasn’t changed because it doesn’t need to be changed” and ” it hasn’t changed because it’s impossible to predict the impact of any change, and no one wants to be responsible for things breaking”.

        • rothaine@lemmy.zip
          link
          fedilink
          arrow-up
          37
          ·
          15 天前

          I was once spelunking a file that hadn’t been touched in like 7 years, and there was a weird line where it was adding 2 to the index for seemingly no reason. The comment was like // Sam: not sure why this is off by 2 here. See ticket #12345 for discussion

          Whatever issue tracking software it was referencing was no longer used, so that ticket was gone, and who TF is Sam?

      • otacon239@lemmy.world
        link
        fedilink
        arrow-up
        20
        ·
        15 天前

        And that’s why so many core Linux utilities have worked almost exactly as they did from the very beginning. If your input and output demand no changes, the only improvements left to make are performance.

      • Drekaridill@feddit.is
        link
        fedilink
        arrow-up
        4
        ·
        15 天前

        I haven’t touched those files. The code works, I don’t need to change it. I’ve mostly been working on the later additions.

  • hakunawazo@lemmy.world
    link
    fedilink
    arrow-up
    48
    arrow-down
    1
    ·
    15 天前

    Even if it was my code, after 6 years:

  • baggachipz@sh.itjust.works
    link
    fedilink
    arrow-up
    35
    arrow-down
    1
    ·
    15 天前

    “Who the fuck wrote this garbage?! ……oh.”

    • hakunawazo@lemmy.world
      link
      fedilink
      arrow-up
      26
      arrow-down
      1
      ·
      15 天前

  • Jankatarch@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    15 天前

    2019

    • affiliate@lemmy.world
      link
      fedilink
      arrow-up
      18
      ·
      15 天前

      don’t do this to me

    • lessthanluigi@lemmy.sdf.org
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      14 天前

      I keep forgetting 2019 is not 1 year ago

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    23
    ·
    15 天前

    Ah yes, the “fuck it, no-one is going to use this” code.

    • Drewmeister@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      15 天前

      I’ve written semi-personal tools that other team members sometimes use that will break in 2100. The comments note this and really hope they aren’t still using these by then

    • colournoun@beehaw.org
      link
      fedilink
      arrow-up
      4
      ·
      15 天前

      Or the “too critical and poorly documented so nobody dares change it” code. Good Luck!

  • traches@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    20
    ·
    15 天前

    I mean if it’s worked without modification for 6 years….

  • Frezik@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    15 天前

    I get to say that I’ve truly made it as a programmer. The reason is that I wrote around 75 lines of Rust, came back a year later, and I could see exactly how it works.

    In case you’re wondering, it’s a command line Slack client for sending notifications. Colored highlights and everything.

  • IndescribablySad@threads.net@sh.itjust.works
    link
    fedilink
    arrow-up
    12
    ·
    15 天前

    “Lmao, who runs mathematically optimized assembly? Let’s get this objective-c rewrite going.”

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    15 天前

    One title would have been enough.

    • Zachariah@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      15 天前

      When you’re working on a file that was last updated six years ago

  • JasonDJ@lemmy.zip
    link
    fedilink
    arrow-up
    4
    ·
    15 天前

    Is that…The 7th Guest?

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.11K users / day
  • 4.03K users / week
  • 8.2K users / month
  • 16.4K users / 6 months
  • 14 local subscribers
  • 25.3K subscribers
  • 872 Posts
  • 13K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org