Civilloquy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Rikudou_Sage@lemmings.world to Programmer Humor@programming.dev · 8 days ago

I'm not sure, but it might be something about UUIDs

lemmings.world

message-square
30
fedilink
361

I'm not sure, but it might be something about UUIDs

lemmings.world

Rikudou_Sage@lemmings.world to Programmer Humor@programming.dev · 8 days ago
message-square
30
fedilink
alert-triangle
You must log in or register to comment.
  • whimsy@lemmy.zip
    link
    fedilink
    English
    arrow-up
    44
    ·
    8 days ago

    Semantic satiation. Or whatever it’s called, i think ive officially lost it after reading this

    • ByteOnBikes@discuss.online
      link
      fedilink
      arrow-up
      2
      ·
      8 days ago

      I read the code like half a dozen times and my brain hurts.

  • UnderpantsWeevil@lemmy.world
    link
    fedilink
    English
    arrow-up
    34
    ·
    8 days ago

    UwUID

  • PattyMcB@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    8 days ago

    Where did i put that Spiderman x3 pointing meme?

  • jbrains@sh.itjust.works
    link
    fedilink
    arrow-up
    18
    ·
    8 days ago

    New Dutch programming language just dropped.

  • Not_mikey@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    18
    ·
    edit-2
    8 days ago

    I can see how this may be useful. My understanding is that this is go lang and the person created a wrapper type UUID and this function takes the go standard library uuid.UUID and returns the wrapped UUID.

    The wrapped UUID could be useful as you can then define methods for it like toInt() or something to make it implement some ID interface you have set up. It’s a common pattern in go to create a thin wrapper around an imported type so you can implement all the methods required for some interface you defined. It does make naming those thin wrappers hard because what are you supposed to name the struct that just contains a uuid?

    • Rikudou_Sage@lemmings.worldOP
      link
      fedilink
      arrow-up
      14
      ·
      8 days ago

      Yep, that person would be me and that’s exactly what I was doing, just found it funny that there was so many uuids in the piece of code.

      Originally the function was named FromUuid but I couldn’t resist renaming it to make it even better.

    • ByteJunk@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      8 days ago

      Clearly, the answer is uuid.

  • HakunaHafada@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    18
    ·
    8 days ago

    UwUIDs

  • mushroommunk@lemmy.today
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    8 days ago

    When you get a new boss at Twitter who ranks people by lines of code written

  • ExperimentalGuy@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    8 days ago

    Why I love the Into trait in rust

  • Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    8 days ago

    I’ve read so many tutorials like this. func Func Myfunc()

    If you write textbooks like this you and your family should be boiled in sewage.

  • fubarx@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    8 days ago

    If this was C:

    #define uuID func
    #define uuiD return
    
    • boonhet@sopuli.xyz
      link
      fedilink
      arrow-up
      4
      ·
      8 days ago

      #define satan fubarx

    • Lemminary@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      8 days ago

      :3

  • 𝕸𝖔𝖘𝖘@infosec.pub
    link
    fedilink
    arrow-up
    4
    ·
    7 days ago

    Plot twist: it returns the bios serial.

  • xoggy@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 days ago

    The feeling you get when searching your codebase for references to your “uid” variable but this cheeky boy keeps popping up.

    • cbazero@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      8 days ago

      n, n, n, nn, nnnnnnnnnnnnnnnnnnn, n, nn, n, n,n …

  • paequ2@lemmy.today
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    8 days ago

    Not exactly the same, but this reminded me of the MuffinMail.MuffinHash.MuffinHash talk: https://www.youtube.com/watch?v=o9pEzgHorH0

    • Randelung@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 days ago

      A colleague wrote Java style Python. SomethingDispatcher().dispatch() all the way. It’s a mess. Poor guy was thrown into the deep end and left alone for a year. I don’t blame him for the outcome.

      Meanwhile, functools.partial is one of my favorite tools. I wrote a whole SCADA system in which the initialization just builds data pathways using functools.partial so that incoming event callbacks can be handled with all necessary resources already in scope. Any missing data is made apparent at init, not at event time. It’s fast and stable (and I’m pretty proud of it lol).

  • BeeegScaaawyCripple@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    8 days ago

    i’ve now read UUID so many times i’m starting to think it’s some kind of sex disease

    • Rikudou_Sage@lemmings.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      7 days ago

      That must one awkward conversation… “Can you explain where did you get the uuid from?”

      • BeeegScaaawyCripple@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        7 days ago

        i told you last logic loop NO

  • carrylex@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    8 days ago

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.

  • 136 users / day
  • 4.05K users / week
  • 7.05K users / month
  • 15.1K users / 6 months
  • 1 local subscriber
  • 26.9K subscribers
  • 1.59K Posts
  • 39.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org