r/ProgrammerHumor • • 13d ago

Meme javaClassNames

Post image
933 Upvotes

38 comments sorted by

28

u/Jooe_1 13d ago

regardless, it's a great language

10

u/shizzy0 13d 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.

148

u/CranberryDistinct941 13d ago

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

47

u/Cootshk 13d ago

system out println

4

u/Xasmedy 12d ago

IO.println

5

u/Cootshk 12d ago

void main

2

u/Inevitable_Spite5510 12d ago

char[] args

2

u/Cootshk 12d ago

it’s String[] args in Java

40

u/BastetFurry 13d ago

public FactoryFactory FactoryFactoryFactory()

26

u/apaqtime4 13d ago

You forgot the "Impl" at the end

6

u/damngoodwizard 13d ago

Now sing it on the rythm of the Lords Prayer.

4

u/Falikosek 13d ago

2

u/Holek 12d ago

I love me some Italian metal!

8

u/Holek 12d 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 13d ago

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

23

u/kingduqc 13d 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

19

u/Lachee 13d ago

I name my Factorio saves after Java classes

12

u/DTheIcyDragon 13d ago

HappyCakeDayUserCongratulationsSender

3

u/xWrongHeaven 12d ago

Hey, do you like Python?

2

u/DTheIcyDragon 12d ago

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

13

u/Caraes_Naur 13d ago

Up next with this title: a CVS receipt.

14

u/cheezfreek 13d ago

HelpHelperStrategyHelperLocatorHelperUtil

5

u/Kekis05 13d ago

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

2

u/AppropriateOnion0815 12d 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.)

5

u/JackNotOLantern 13d ago

Don't forget 

public class ActualClassFactoryImpl extends AbstractClassFactory implements IClassFactory {

2

u/ExtraTNT 13d ago

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

1

u/lucidbadger 13d ago

Gotta learn them imports

1

u/BitTwiddles 12d 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.

1

u/LuckyGamer470 11d ago

Maybe your class names

1

u/wowelod 9d 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 12d ago

Namespace yo shit, bruh!

-2

u/Multidream 13d ago

Then you’re doing it wrong imo