Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. When you're working on a file that was last updated six years ago

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

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
20 Posts 17 Posters 25 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • bleistift2@sopuli.xyzB [email protected]

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

    C This user is from outside of this forum
    C This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #8

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

    1 Reply Last reply
    1
    • bleistift2@sopuli.xyzB [email protected]

      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.

      M This user is from outside of this forum
      M This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #9

      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”.

      R 1 Reply Last reply
      38
      • C [email protected]
        This post did not contain any content.
        B This user is from outside of this forum
        B This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #10

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

        H 1 Reply Last reply
        23
        • C [email protected]
          This post did not contain any content.
          J This user is from outside of this forum
          J This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #11

          Is that...The 7th Guest?

          1 Reply Last reply
          2
          • C [email protected]
            This post did not contain any content.
            M This user is from outside of this forum
            M This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #12

            One title would have been enough.

            zachariah@lemmy.worldZ 1 Reply Last reply
            1
            • C [email protected]
              This post did not contain any content.
              F This user is from outside of this forum
              F This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #13

              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.

              1 Reply Last reply
              4
              • M [email protected]

                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”.

                R This user is from outside of this forum
                R This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #14

                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?

                1 Reply Last reply
                19
                • C [email protected]
                  This post did not contain any content.
                  H This user is from outside of this forum
                  H This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #15

                  Even if it was my code, after 6 years:

                  1 Reply Last reply
                  37
                  • B [email protected]

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

                    H This user is from outside of this forum
                    H This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #16

                    1 Reply Last reply
                    16
                    • bleistift2@sopuli.xyzB [email protected]

                      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.

                      D This user is from outside of this forum
                      D This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #17

                      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.

                      1 Reply Last reply
                      2
                      • C [email protected]
                        This post did not contain any content.
                        T This user is from outside of this forum
                        T This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #18

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

                        1 Reply Last reply
                        12
                        • M [email protected]

                          One title would have been enough.

                          zachariah@lemmy.worldZ This user is from outside of this forum
                          zachariah@lemmy.worldZ This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #19

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

                          1 Reply Last reply
                          1
                          • C [email protected]
                            This post did not contain any content.
                            A This user is from outside of this forum
                            A This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #20

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

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups