not digg
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.cafe to Programmer Humor@programming.devEnglish · 24 hours ago

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

lemmy.ml

message-square
21
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
400

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

lemmy.ml

cm0002@lemmy.cafe to Programmer Humor@programming.devEnglish · 24 hours ago
message-square
21
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • traches@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    17
    ·
    17 hours ago

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

  • hakunawazo@lemmy.world
    link
    fedilink
    arrow-up
    40
    arrow-down
    1
    ·
    22 hours ago

    Even if it was my code, after 6 years:

  • Drekaridill@feddit.is
    link
    fedilink
    arrow-up
    62
    ·
    24 hours ago

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

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      42
      ·
      24 hours ago

      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
        49
        ·
        22 hours ago

        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
          33
          ·
          22 hours ago

          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
        17
        ·
        23 hours ago

        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
        3
        ·
        21 hours ago

        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.

  • baggachipz@sh.itjust.works
    link
    fedilink
    arrow-up
    28
    arrow-down
    1
    ·
    22 hours ago

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

    • hakunawazo@lemmy.world
      link
      fedilink
      arrow-up
      21
      arrow-down
      1
      ·
      22 hours ago

  • Jankatarch@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    21 hours ago

    2019

    • lessthanluigi@lemmy.sdf.org
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      7 hours ago

      I keep forgetting 2019 is not 1 year ago

    • affiliate@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      16 hours ago

      don’t do this to me

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    20
    ·
    24 hours ago

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

    • Drewmeister@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      23 hours ago

      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
      ·
      22 hours ago

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

  • frezik@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    22 hours ago

    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
    10
    ·
    23 hours ago

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

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    22 hours ago

    One title would have been enough.

    • Zachariah@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      16 hours ago

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

  • JasonDJ@lemmy.zip
    link
    fedilink
    arrow-up
    4
    ·
    22 hours ago

    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.

  • 2.1K users / day
  • 4.25K users / week
  • 8.05K users / month
  • 19.5K users / 6 months
  • 1 local subscriber
  • 25K subscribers
  • 1.57K Posts
  • 14.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org