r/ProgrammerHumor • • Oct 27 '26

Meme javaClassNames

Post image
935 Upvotes

38 comments sorted by

28

u/Jooe_1 Oct 27 '26

regardless, it's a great language

10

u/shizzy0 Oct 27 '26

You’re absolutely right. Although it initially had terrible performance and its write one run anywhere claim never truly materialized, it was so much simpler than C++ that people forgave its many crippling flaws.

148

u/CranberryDistinct941 Oct 27 '26

Let us recite the Java chant: public static void main string args

47

u/Cootshk Oct 27 '26

system out println

4

u/Xasmedy Oct 27 '26

IO.println

5

u/Cootshk Oct 27 '26

void main

2

u/Inevitable_Spite5510 Oct 27 '26

char[] args

2

u/Cootshk Oct 27 '26

it’s String[] args in Java

40

u/BastetFurry Oct 27 '26

public FactoryFactory FactoryFactoryFactory()

26

u/apaqtime4 Oct 27 '26

You forgot the "Impl" at the end

6

u/damngoodwizard Oct 27 '26

Now sing it on the rythm of the Lords Prayer.

8

u/Holek Oct 27 '26

In general Spring is littered with these examples:

  1. AbstractTransactionalJUnit4SpringContextTests - an actual testing class...
  2. AbstractFallbackTransactionAttributeSource - when your transaction attributes need a fallback, but the fallback needs an abstraction...
  3. AbstractAutowireCapableBeanFactory - it extends AbstractBeanFactory, obviously!

But the inheritance hierarchy of these "Bean" classes is arguably even funnier, eg.:

Object
  └── SimpleAliasRegistry
       └── DefaultSingletonBeanRegistry
            └── FactoryBeanRegistrySupport
                 └── AbstractBeanFactory
                      └── AbstractAutowireCapableBeanFactory
                           └── DefaultListableBeanFactory

That's seven levels of inheritance to get a bean factory.

40

u/EverydayLentils Oct 27 '26

The only thing longer than the class name is Claude's comment about it

23

u/kingduqc Oct 27 '26

I never get this complaint about Java, it's 90% EmailController, EmailService and EmailRepository.

Okay There sometimes the odd factory with a big ass name, but we don't talk about it :p

20

u/Lachee Oct 27 '26

I name my Factorio saves after Java classes

13

u/DTheIcyDragon Oct 27 '26

HappyCakeDayUserCongratulationsSender

3

u/xWrongHeaven Oct 27 '26

Hey, do you like Python?

3

u/DTheIcyDragon Oct 27 '26

Maybe :D It was primarily the first (and only) language I could read/write

13

u/Caraes_Naur Oct 27 '26

Up next with this title: a CVS receipt.

14

u/cheezfreek Oct 27 '26

HelpHelperStrategyHelperLocatorHelperUtil

5

u/Kekis05 Oct 27 '26

Somebody told me the user provider should use an adapter to proxy the query factory builder!

2

u/AppropriateOnion0815 Oct 27 '26

Let me bring Objective-C into the ring. outputImageProviderFromBufferWithPixelFormat:pixelsWide:pixelsHigh:baseAddress:bytesPerRow:releaseCallback:releaseContext:colorSpace:shouldColorMatch: (Granted, that's a method name, but nevertheless.)

5

u/JackNotOLantern Oct 27 '26

Don't forget 

public class ActualClassFactoryImpl extends AbstractClassFactory implements IClassFactory {

2

u/ExtraTNT Oct 27 '26

When you get oddlySpecificThingFactoryConfiguratorFactoryBuilderConfiguratorFactoryImpl, you should think about switching company…

1

u/lucidbadger Oct 27 '26

Gotta learn them imports

1

u/BitTwiddles Oct 27 '26

I had to write java for years and I hated those long fully qualified class names we had to use. com.bigcompany.project.Thing.

1

u/LuckyGamer470 29d ago

Maybe your class names

1

u/wowelod 26d ago

Import org.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import.import

0

u/IronSavior Oct 28 '26

Namespace yo shit, bruh!

-2

u/Multidream Oct 27 '26

Then you’re doing it wrong imo