124
u/CranberryDistinct941 1d ago
Let us recite the Java chant: public static void main string args
41
35
6
6
6
u/Holek 21h ago
In general Spring is littered with these examples:
AbstractTransactionalJUnit4SpringContextTests- an actual testing class...
AbstractFallbackTransactionAttributeSource- when your transaction attributes need a fallback, but the fallback needs an abstraction...
AbstractAutowireCapableBeanFactory- it extendsAbstractBeanFactory, obviously!But the inheritance hierarchy of these "Bean" classes is arguably even funnier, eg.:
Object └── SimpleAliasRegistry └── DefaultSingletonBeanRegistry └── FactoryBeanRegistrySupport └── AbstractBeanFactory └── AbstractAutowireCapableBeanFactory └── DefaultListableBeanFactoryThat's seven levels of inheritance to get a bean factory.
39
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
11
14
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
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.
26
u/Jooe_1 1d ago
regardless, it's a great language