lemmy.billiam.net
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 2 months ago

When you look at code you wrote last year

lemmy.ml

message-square
19
link
fedilink
  • cross-posted to:
  • [email protected]
710

When you look at code you wrote last year

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 2 months ago
message-square
19
link
fedilink
  • cross-posted to:
  • [email protected]
alert-triangle
You must log in or register to comment.
  • MystikIncarnate@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 months ago

    To be fair, this is also me when I look at a network setup years later. (I do IT with a specialty in networks)

  • Reptorian@programming.dev
    link
    fedilink
    arrow-up
    9
    ·
    2 months ago

    Sometimes, I just rewrite my code until it is good enough. Other times, I leave it to my memory, so I can figure it out later. And others, I’m just not happy about it, like the times I did bigbin2dec and it would only work well with something like thread-ripper.

  • UnfortunateShort@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    2 months ago

    *yesterday

  • stebo02@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    22
    ·
    edit-2
    5 days ago

    deleted by creator

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      5
      ·
      2 months ago

      Try to write as if you are explaining the functionality to an unrelated 3rd party like a new hire.

      • scutiger@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        2 months ago

        Yeah, write it for the person who has to replace you when you inevitably get laid off so that your company can hire someone for half your salary.

        • Appoxo@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          2
          ·
          2 months ago

          Don’t be a dick to your (current) co-workers.

  • stubing@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    testing

  • spartanatreyu@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    2 months ago

    This is why you’re meant to comment your code.

    Your code tells you “what”, your comments tell you “why”.

    Here’s a good review of comments in the redis codebase: https://antirez.com/news/124

  • danc4498@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 months ago

    There’s an exponential amount of time between each panel. 1 hour, 5 hours, 2 days for the answer.

  • Onno (VK6FLAB)@lemmy.radio
    link
    fedilink
    arrow-up
    44
    ·
    2 months ago

    Accurate, except the bottom right panel only happens in very limited circumstances, hardly ever after a year has passed.

    Source: I’ve been writing software since 1983 or so.

    • Carighan Maconar@lemmy.world
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      2 months ago

      Yeah same, also I don’t usually need a year to think that. The next day often works. 😅

  • DacoTaco@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    2 months ago

    Me during code reviews of other people

  • Horrabin@programming.dev
    link
    fedilink
    arrow-up
    39
    ·
    edit-2
    2 months ago

    This is probably more accurate:

    -Who the fuck wrote such a shit!

    -WHO???

    -…

    -Oh… it was me…

    • fayoh@sopuli.xyz
      link
      fedilink
      arrow-up
      29
      ·
      2 months ago

      Me at a previous workplace.

      -This is a piece of shit, who is the code owner of this module.

      • Ah, it’s me (“inheriting” code ownership when someone left was common)

      • Who did this change

      • Ah, it was me

      • Surely I just made a minor change to this line here, who wrote the function.

      • it was me, it was me all the way down

      Fits the general theme of the thread as it was not giving any trouble for a year before being found.

      • antimidas@sopuli.xyz
        link
        fedilink
        arrow-up
        23
        ·
        2 months ago

        The more frustrated you are when running git blame the more likely the command turns out to be a mirror.

        • Horrabin@programming.dev
          link
          fedilink
          arrow-up
          6
          ·
          2 months ago

          This is where the programmer’s way to humbleness starts :-D

        • ulterno@programming.dev
          link
          fedilink
          English
          arrow-up
          5
          ·
          2 months ago

          Last time that happened to me, it was a mirror, but also not.

          I had moved functions from one file to another without changing the contents. As a result, all those lines referred to me.

          And since I started thinking, I found this

          • antimidas@sopuli.xyz
            link
            fedilink
            arrow-up
            2
            ·
            2 months ago

            Good link that, I’ll have to add those flags to my list of aliases

  • Die Martin Die@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    2 months ago

    s/year/week/

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: [email protected]

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.

  • 720 users / day
  • 4.64K users / week
  • 9.68K users / month
  • 17.8K users / 6 months
  • 2 local subscribers
  • 23.1K subscribers
  • 1.39K Posts
  • 51K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org