r/programminghumor • • 5d ago

public static void main doesn't look so bad now innit

Post image

wEbHoOkEnDpOiNtObJeCtObJeCt 💀

26 Upvotes

17 comments sorted by

21

u/Diocletian335 5d ago

This is peak Java production code.

It's beautiful.

2

u/therealkevinard 19h ago

I can’t wait to grok its logs into something meaningful.

“Ohhhhh! The error is coming from com.marketsdk.w.o.l.m.x! Silly me, I thought it was com.marketsdk.w.o.r.m.x”

8

u/iSTeeWx_ 4d ago

3

u/OrneryAsparagus6445 3d ago

You missed FactoryInterfaceFactory

2

u/Bemteb 2d ago

Don't forget to add some builders. A factory can't work without employees after all.

2

u/TREE_sequence 3d ago

This is incredible

4

u/NaCl-more 5d ago

Java Record classes in shambles

5

u/Interesting_Buy_3969 4d ago

Java has no naming issues by design btw

1

u/DarthRaab 1d ago

Auto generation. It's trying to be precise more than to find shortcuts to keep it human-readable.

2

u/Glad_Share_7533 4d ago

This is why I love Java

2

u/TREE_sequence 3d ago

Well somebody told me the UserProvider should use an adaptor to query the ProxyFactoryBuilder … 🎵

2

u/Dr_Dressing 1d ago

ObjectObject.

Look, I don't claim to know all my patterns like some wizard. But I'm fairly certain that whoever named these files either doesn't know any patterns, or invented something new entirely.

I can only applaud.

1

u/Gaious_Octavious 1d ago

well, ofcourse i know him. He’s me.

2

u/Sacaldur 5d ago

Why does the class have object in its name? An object is an instance of a class.

And why does it have it twice? What is an ObjectObject supposed to be?

1

u/Gaious_Octavious 4d ago

good question. our company does not write sdk manually, it is generated using Fern (deterministic generation, not AI) from the OpenAPI spec

checkout https://github.com/fern-api/fern and https://github.com/focussofthq/marketsdk-java