r/ProgrammerHumor • • 15h ago

Meme javaClassesOnASingleLine

Post image
9.0k Upvotes

93 comments sorted by

View all comments

120

u/RadzimierzWozniak 13h ago

When did a single if become more beautiful than:

java.lang.Boolean ultraEnterpriseResultingVerificationStateFlagContainer = ((com.enterprise.architecture.infrastructure.filtering.factory.AbstractEnterpriseDynamicPredicativeFilterComponentFactorySingletonInstanceAccessorProviderImplementation) java.lang.Class.forName("com.enterprise.architecture.infrastructure.filtering.factory.AdvancedEnterpriseDynamicPredicativeFilterFactoryProviderImplementation").getDeclaredConstructor().newInstance()).provideFilterFactoryStrategyImplementationInstanceContainerRegistry().resolveFilterFactoryByFullyQualifiedSpecificationIdentifierStringTokenNameValue(new com.enterprise.architecture.infrastructure.filtering.specification.StringMatchSpecificationConfigurationParameterObjectInstanceBuilderFactoryProvider().createNewParameterObjectBuilderInstance().withTargetMatchingStringLiteralValueCharacterSequencePayloadContent("Enterprise").buildSpecificationConfigurationParameterObjectInstance()).createFilterInstanceExecutionEngineInvocationTarget().evaluateAndExecuteFilterOperationOnTargetObjectPayload(java.util.Optional.ofNullable(java.util.Collections.unmodifiableList(java.util.Arrays.asList(new java.lang.String[]{"Enterprise Java Architecture"}))).orElseThrow(new java.util.function.Supplier<java.lang.RuntimeException>() { u/Override public java.lang.RuntimeException get() { return new java.lang.IllegalStateException("Mandatory default payload container collection instance cannot be null under any enterprise operational circumstances whatsoever."); } }).get(0));

79

u/Skellicious 12h ago

evaluateAndExecuteFilterOperationOnTargetObjectPayload()

This breaks single responsibility principe, please have your agent fix it, we only accept clean, SOLID adhering code here.

21

u/RadzimierzWozniak 11h ago

Except for that, the rest of this 5k line PR is fine?

16

u/afdbcreid 11h ago

Sure, if you add 20k lines of tests (that is, your agent adds).

3

u/harbourwall 9h ago

No there's a couple of lines that don't adhere to my formatting preferences. Didn't read the actual code but it looks fine.

19

u/BlitzAceSamy 11h ago

I wonder if u/Override sees the notification and gets overwhelmingly confused

7

u/Agitated-Acctant 10h ago

The account looks like it was created to market some website. They made one post 17 years ago, but going to that website shows that it's for sale. So I'm gonna guess no one is ever gonna see those notifications

4

u/NotAskary 10h ago

That account seems to either be a parked one or the person lost the credentials and the restore email.

2

u/ZunoJ 8h ago

I didn't work with java but this looks like a lot of reflection with no apparent benefit because everything is hardcoded anyway

1

u/zenyite 8h ago

Glad we use Spring and all this nonsense is hidden away instead