Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Hofmaimaier ( NichEherVielleicht@feddit.org )  to Programmer Humor@programming.dev ·
edit-2
9 months ago

look at this junk!

feddit.org

message-square
30
link
fedilink
433

look at this junk!

feddit.org

Hofmaimaier ( NichEherVielleicht@feddit.org )  to Programmer Humor@programming.dev ·
edit-2
9 months ago
message-square
30
link
fedilink
alert-triangle
You must log in or # to comment.
  • BillyClark ( BillyClark@piefed.social ) 
    link
    fedilink
    English
    arrow-up
    51
    ·
    9 months ago

    This does happen a lot, but have you ever had the opposite happen? Where you go into some of your older code, and not only is it nice to read, but you had anticipated that you’d have to make this change later, and so the design makes the change easy?

    That’s happened to me a few times and all I can say is that it takes days for my self-satisfaction to wane.

    • jjjalljs ( jjjalljs@ttrpg.network ) 
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      I used to be better at math and coding. If I pulled up my old project euler solutions I’m not sure I’d understand them anymore.

    • CanadaPlus ( CanadaPlus@lemmy.sdf.org ) 
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      I had this happen recently. Very satisfying.

      I did add some more comments and change names, though, since stuff I thought was obvious at the time wasn’t totally.

    • AdamBomb ( AdamBomb@lemmy.sdf.org ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      9 months ago

      Happens more often the better you get at your craft. I used to say that if you don’t hate the code you wrote last year, you’re not improving. Well, let’s just say I finally stopped hating mine.

  • Sanctus ( Sanctus@anarchist.nexus ) 
    link
    fedilink
    English
    arrow-up
    39
    ·
    9 months ago

    Who the fuck wrote this!?

    ‘‘Written by Sanctus Two/Months/Ago’’

    • macniel ( DmMacniel@feddit.org ) 
      link
      fedilink
      arrow-up
      27
      ·
      9 months ago

      someone must have tampered with git history!

    • sik0fewl ( sik0fewl@piefed.ca ) 
      link
      fedilink
      English
      arrow-up
      5
      ·
      9 months ago

      I stopped using git blame for this reason.

  • darklamer ( darklamer@lemmy.dbzer0.com ) 
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    8 months ago

    deleted by creator

    • mfed1122 ( mfed1122@discuss.tchncs.de ) 
      link
      fedilink
      English
      arrow-up
      7
      ·
      9 months ago

      I am beginning to suspect that 90% of programming memes are made by beginners and 90% of the engagement with them is also from beginners. Maybe I’m just projecting. I remember seeing this stuff when I was starting and just assuming that must be how it is.

    • TheSambassador ( TheSambassador@beehaw.org ) 
      link
      fedilink
      English
      arrow-up
      5
      ·
      9 months ago

      I can look at old code that I wrote and feel good about the growth I’ve made.

      I also can look at old code I wrote, which I need to understand/update, and be really annoyed at my past self.

      How annoyed I am is entirely based on what I need to do to the code right now. The fact is, it’s way easier to be annoyed at myself than annoyed at other people.

  • SchwertImStein ( SchwertImStein@lemmy.dbzer0.com ) 
    link
    fedilink
    English
    arrow-up
    11
    ·
    9 months ago

    Junior ass meme

  • SaharaMaleikuhm ( SaharaMaleikuhm@feddit.org ) 
    link
    fedilink
    arrow-up
    11
    ·
    9 months ago

    I am usually quite pleased with my old code. It ain’t perfect, but it’s doing well for itself. Sometimes there is silly stuff I need to fix, but then I just laugh at myself.

  • Otiz ( Otiz@sopuli.xyz ) 
    link
    fedilink
    arrow-up
    8
    ·
    9 months ago

    *his own two months old code

    • prettybunnys ( prettybunnys@piefed.social ) 
      link
      fedilink
      English
      arrow-up
      8
      ·
      9 months ago

      Their

    • Hofmaimaier ( NichEherVielleicht@feddit.org ) OP
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      9 months ago

      Good point…

      Old version:

  • Guttural ( Guttural@jlai.lu ) 
    link
    fedilink
    Français
    arrow-up
    6
    ·
    edit-2
    9 months ago

    As soon as I stopped trying to write textbook OOP stuff, this stopped occurring to me. That was years ago.

    I’m not saying I write perfect code, no. But when I read bad stuff I wrote, I can understand it and think of ideas about how to improve it if that becomes necessary.

    On top of writing more functional-style code, the way I achieved this was:

    • Absolutely no inheritance whatsoever. Composition + interfaces work wonders for what I do.
    • Minimal mutable state. This pays dividends when debugging.
    • Ditto for type-system-encoded nullability markers (ie. ? in C#, std::optional in C++…)
    • I avoid writing code just-in-case something happens. If I haven’t run it manually or via unit tests, it goes to the garbage bin (not an absolute, just a guiding principle). There’s a chance that code isn’t even correct to begin with and you’ll have to throw it away should you ever need it.
    • Low indirection. I don’t want to jump through 10 functions to see what something is doing, and nobody else does either.
  • tiredofsametab ( tiredofsametab@fedia.io ) 
    link
    fedilink
    arrow-up
    6
    ·
    9 months ago

    I looked at code I wrote about a year ago today. Yeah, there are things I would’ve done differently now, but I had no trouble following it. Some of the choices I made were company standards at the time as well which, thankfully, have improved.

  • zeezee ( zeezee@slrpnk.net ) 
    link
    fedilink
    arrow-up
    6
    ·
    9 months ago

    I like that this meme implies women and enbies write immaculate code and never regret what they’ve written before 😎

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮  ( Kolanaki@pawb.social ) 
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 months ago

    Also the face almost everyone makes when they open up that tupperware that’s been in the very back of the fridge for the same amount of time as your code.

    • bleistift2 ( bleistift2@sopuli.xyz ) 
      link
      fedilink
      English
      arrow-up
      5
      ·
      9 months ago

      You store your code in the fridge? Does that keeps the bugs out?

      • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮  ( Kolanaki@pawb.social ) 
        link
        fedilink
        English
        arrow-up
        5
        ·
        9 months ago

        Yeah, but things still sometimes freeze.

  • kubica ( kubica@fedia.io ) 
    link
    fedilink
    arrow-up
    5
    ·
    9 months ago

    That’s why I let my code rest for 2 months before committing.

  • YerbaYerba ( YerbaYerba@lemmy.zip ) 
    link
    fedilink
    arrow-up
    4
    ·
    9 months ago

    When I git blame after finding the production issue and see the committer is me

  • Goldholz  ( Goldholz@lemmy.blahaj.zone ) 
    link
    fedilink
    arrow-up
    4
    ·
    9 months ago

    Its a great to see how much i’ve improved in 2 years :)

    Remembering the code i used to write and how i do it now

  • mintiefresh ( mintiefresh@piefed.ca ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 months ago

    I barely remember anything I made from 2 months ago lol

  • TomMasz ( TomMasz@piefed.social ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 months ago

    Arrrggghhhh! It’s hideous! Make it go away!

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.45K users / day
  • 3.12K users / week
  • 4.54K users / month
  • 7.86K users / 6 months
  • 462 local subscribers
  • 33.7K subscribers
  • 1.58K Posts
  • 25.9K 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