Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
cm0002 ( cm0002@lemmy.cafe )  to Programmer Humor@programming.devEnglish · 1 year ago

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

lemmy.ml

message-square
11
link
fedilink
248

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

lemmy.ml

cm0002 ( cm0002@lemmy.cafe )  to Programmer Humor@programming.devEnglish · 1 year ago
message-square
11
link
fedilink
alert-triangle
You must log in or # to comment.
  • Drekaridill ( Drekaridill@feddit.is ) 
    link
    fedilink
    arrow-up
    35
    ·
    1 year ago

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

    • bleistift2 ( bleistift2@sopuli.xyz ) 
      link
      fedilink
      English
      arrow-up
      31
      ·
      1 year 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 ( magic_lobster_party@fedia.io ) 
        link
        fedilink
        arrow-up
        36
        ·
        1 year 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 ( rothaine@lemmy.zip ) 
          link
          fedilink
          arrow-up
          22
          ·
          1 year 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?

      • Drekaridill ( Drekaridill@feddit.is ) 
        link
        fedilink
        arrow-up
        2
        ·
        1 year 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.

  • bleistift2 ( bleistift2@sopuli.xyz ) 
    link
    fedilink
    English
    arrow-up
    14
    ·
    1 year ago

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

    • colournoun ( colournoun@beehaw.org ) 
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

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

  • Frezik ( frezik@lemmy.blahaj.zone ) 
    link
    fedilink
    arrow-up
    11
    ·
    1 year 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.

  • MonkderVierte ( MonkderVierte@lemmy.zip ) 
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    One title would have been enough.

  • JasonDJ ( JasonDJ@lemmy.zip ) 
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Is that…The 7th Guest?

  • axEl7fB5 ( axEl7fB5@lemmy.cafe ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

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

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 1.48K users / day
  • 2.71K users / week
  • 4.28K users / month
  • 7.73K users / 6 months
  • 462 local subscribers
  • 33.7K subscribers
  • 1.58K Posts
  • 25.8K Comments
  • Modlog
  • mods:
  • Feyter ( Feyter@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • BurningTurtle ( BurningTurtle@programming.dev ) 
  • Pierre-Yves Lapersonne ( pylapp@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code