Plot twist: it returns the bios serial.
Semantic satiation. Or whatever it’s called, i think ive officially lost it after reading this
I read the code like half a dozen times and my brain hurts.
UwUID
Where did i put that Spiderman x3 pointing meme?
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 libraryuuid.UUID
and returns the wrappedUUID
.The wrapped
UUID
could be useful as you can then define methods for it liketoInt()
or something to make it implement someID
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?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.Clearly, the answer is uuid.
New Dutch programming language just dropped.
UwUIDs
When you get a new boss at Twitter who ranks people by lines of code written
Why I love the Into trait in rust
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.
If this was C:
#define uuID func #define uuiD return
#define satan fubarx
:3
The feeling you get when searching your codebase for references to your “uid” variable but this cheeky boy keeps popping up.
n, n, n, nn, nnnnnnnnnnnnnnnnnnn, n, nn, n, n,n …
Not exactly the same, but this reminded me of the MuffinMail.MuffinHash.MuffinHash talk: https://www.youtube.com/watch?v=o9pEzgHorH0
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).
i’ve now read UUID so many times i’m starting to think it’s some kind of sex disease
That must one awkward conversation… “Can you explain where did you get the uuid from?”
i told you last logic loop NO