Is “main” a valid Java identifier?
yes
package main; public class main { static main main; String Main; main(String main) { Main = main; } main(main main) { System.out.println(main.Main); } main main(main main) { return new main(main); } public static void main(main...Main) { main: for (main main : Main) { main = (main instanceof Main) ? new main(main): main.main(main); break main; } } public static void main(String[] args) { main = new main("main"); main.main(main, main); main = main.new Main(main) { main main(main main) { return ((Main)main).main(); } }; main.main(main); main.main(main,main); } abstract class Main extends main { Main(main main) { super("main"); } main main() { main.Main = "Main"; return main; } } }
Who hurt you?
Main, obviously.
This is your main on drugs 🍳
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
Plot twist: it returns the bios serial.
UwUIDs
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.
When you get a new boss at Twitter who ranks people by lines of code written
Where did i put that Spiderman x3 pointing meme?
New Dutch programming language just dropped.
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.
Why I love the Into trait in rust
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
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 …
If this was C:
#define uuID func #define uuiD return
#define satan fubarx
:3