The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 11 months ago

When you look at code you wrote last year

lemmy.ml

message-square
14
link
fedilink
550

When you look at code you wrote last year

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 11 months ago
message-square
14
link
fedilink
alert-triangle
You must log in or # to comment.
  • Horrabin@programming.dev
    link
    fedilink
    arrow-up
    34
    ·
    11 months ago

    This is probably more accurate:

    -Who the fuck wrote such a shit!

    -WHO???

    -…

    -Oh… it was me…

  • stebo@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    17
    ·
    11 months ago

    And I always think I write good comments until a year later I’m like these comments don’t help shit

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      11 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
        3
        arrow-down
        1
        ·
        11 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
          1
          ·
          11 months ago

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

  • DacoTaco@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    11 months ago

    Me during code reviews of other people

  • UnfortunateShort@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    11 months ago

    *yesterday

  • Reptorian@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    11 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.

  • danc4498@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    11 months ago

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

  • MystikIncarnate@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    11 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)

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

    s/year/week/

  • spartanatreyu@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    11 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

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

    testing

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.

  • 134 users / day
  • 1.77K users / week
  • 4.24K users / month
  • 10K users / 6 months
  • 1 local subscriber
  • 29.2K subscribers
  • 1.5K Posts
  • 26.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org