r/ProgrammerHumor • • 1d ago

Meme javaClassNames

Post image
799 Upvotes

36 comments sorted by

26

u/Jooe_1 1d ago

regardless, it's a great language

9

u/shizzy0 1d ago

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.

124

u/CranberryDistinct941 1d ago

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

41

u/Cootshk 1d ago

system out println

→ More replies (5)

35

u/BastetFurry 1d ago

public FactoryFactory FactoryFactoryFactory()

22

u/apaqtime4 1d ago

You forgot the "Impl" at the end

6

u/Holek 21h ago

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.

39

u/EverydayLentils 1d ago

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

20

u/kingduqc 1d ago

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

18

u/Lachee 1d ago

I name my Factorio saves after Java classes

10

u/DTheIcyDragon 1d ago

HappyCakeDayUserCongratulationsSender

3

u/xWrongHeaven 23h ago

Hey, do you like Python?

→ More replies (1)

11

u/Caraes_Naur 1d ago

Up next with this title: a CVS receipt.

14

u/cheezfreek 1d ago

HelpHelperStrategyHelperLocatorHelperUtil

5

u/Kekis05 1d ago

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

→ More replies (1)

5

u/JackNotOLantern 1d ago

Don't forget 

public class ActualClassFactoryImpl extends AbstractClassFactory implements IClassFactory {

2

u/ExtraTNT 1d ago

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

1

u/lucidbadger 1d ago

Gotta learn them imports

1

u/AppropriateOnion0815 20h ago

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.)

1

u/BitTwiddles 14h ago

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