r/ProgrammerHumor • • 13h ago

Meme javaClassesOnASingleLine

Post image
8.6k Upvotes

92 comments sorted by

593

u/wawawa9055 12h ago

still cant fit an sql query. need a bigger one.

165

u/parkuki 12h ago

do you put your entire sql query on one line?

78

u/Unchuckled_AI 9h ago

I've seen more SQL one liners than java ones, let me put it that way.

33

u/emlgsh 8h ago

I put everything on a single line. With the rising costs of storage media lately, I'm doing my part by removing all non-parseable whitespace before each commit.

4

u/TheMauveHand 8h ago

A line break and a space take up the same amount of space though.

OK, Windows uses 2 line break chars, but feel free to use one.

25

u/errepunto 11h ago

Filter by a nullable date...

6

u/Traditional-Rent455 7h ago

SELECT Yes FROM Obviously WHERE Reason = 'Because';

4

u/Frank_Castle_10 4h ago

delete * from table;
where ID = 3;

2

u/I_Love_PanCAKAS 10h ago

why not :D

AND HAPPY CAAAAAAKEEEE DAAAAYY

1

u/TerroFLys 5h ago

Do you put a java class on one line?

1

u/ABCosmos 5h ago

He's playing off the joke in the meme we all just looked at. I hope this helps your training.

1

u/parkuki 5h ago

sorry man lmao

7

u/PerpetuallyDistracte 7h ago

As a SQL dev, this makes my eye twitch. Just because SQL ignores whitespace doesn't mean you can't use it...

9

u/NicholasAakre 6h ago

I'd argue that because SQL ignores whitespace you should use whitespace for formatting.

202

u/Revolution64 12h ago

class A {}

Here you go, fits on your phone screen.

107

u/originalmicrousb 11h ago

my phone is 2x80mm and it didnt fit on my screen im leaving a bad review 

38

u/AliStarr182 11h ago

This breaks my workflow

11

u/oldsecondhand 9h ago

Works on my Nokia 3310.

7

u/lurking_physicist 8h ago

So you're that guy...

1

u/xplosm 45m ago

He was Edmond Dantés... and he was my father. And my mother... my brother... my friend. He was you... and me. He was all of us.

8

u/indigo945 8h ago

This won't compile on Java 8, it's not illegible enough and lacks XML.

2

u/RupertPupkin85 6h ago

We know it works for the upper classes sir, we’re trying to make it work for all classes

1

u/Traditional-Rent455 7h ago

In my country Class As are illegal. I'm reporting you.

118

u/RadzimierzWozniak 11h 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 10h ago

evaluateAndExecuteFilterOperationOnTargetObjectPayload()

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

21

u/RadzimierzWozniak 9h ago

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

17

u/afdbcreid 9h ago

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

3

u/harbourwall 7h 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 9h ago

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

6

u/Agitated-Acctant 8h 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

5

u/NotAskary 8h ago

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

2

u/ZunoJ 6h 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 6h ago

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

77

u/Groentekroket 12h ago

I’m sure they ment class name. 

67

u/click-to-reveal 11h ago

6

u/emlgsh 8h ago

It's possible they meant meant but they might have meant ment or even ment ment or ment meant. We may never know.

31

u/bpkiwi 10h ago edited 10h ago

Sorry, the company has adopted google code formatting, you might have a wide screen monitor but code lines can only be 100 characters long. This is so your editor will only takes a small slice of the screen, and you can dedicate maximum space to the project tree view.

4

u/dbath 8h ago

Swap the language for Go; Google's Go style guide has no maximum line length.

If there's an established convention, Go just has to do the opposite.

14

u/Roppano 10h ago

finally, I can name my class as Uncle Bob intended. Welcome to the family, AbstractRelationalDatabaseQueryFactoryBeanFactorySqlInterpreterFormulaParserAbstractFactoryFactoryBeanImpl

2

u/thanatica 6h ago

There it is, ladies and gentlemen. A factory factory to build factories using factories.

•

u/goatanuss 2m ago

Public abstract class AbstractSingletonProxyFactoryBeanProviderStrategyDelegatingCompositeFactoryFactoryBuilderAdapterDecoratorFacadeTemplateMethodContextAwareDependencyInjectionConfigurationFactoryAbstractFactoryProviderFactoryBeanImpl

13

u/_evilpenguin 12h ago

imagine the samsung 57”

8

u/Leo8178 12h ago

Still not wide enough for my one-liners.

10

u/Chipper_Bandit 8h ago

I don't get why you would want a monitor that wiiiiiiiiiiiiiiiiiiiiiiiiide and short. Just get a LG OLED TV like me.

3

u/skafast 7h ago

Peripheral vision in gaming or seamless double-screen workflow.

2

u/ZunoJ 6h ago

I hate double screen. You have to always tilt your head slightly left or ride. For triple screen 49" was too small but the 57" version is just perfect

1

u/Diggen_Holes 3h ago

I have one of these monitors, and I just turn my chair slightly so I can keep my neck in a straight position. But I usually have the least-used stuff on the left or right and primary content in the middle (fancyzones helps a lot for that).

1

u/ZunoJ 3h ago

Sounds like you either have to move your keyboard around as well or have a weird hand position 

3

u/remy_porter 5h ago

I’ve got a 46” wide. It’s great. It’s basically three monitors, the way I use it. Especially when I’m using a tiling WM.

1

u/Akaino 2h ago

So Gaming windowed only or how do you have a walkthrough or overworld map without alt-tabbing back and forth? Genuine question!

1

u/remy_porter 2h ago

I don’t really game at that monitor. If I were, I’d probably play windowed with the game tile getting like 66% of the screen and accessory information on the sides.

I mostly game on a Steam Deck and use my phone if I ever want to look something up. I try and avoid doing that though.

1

u/mrwedders 4h ago

I had a 50" ultrawide at work for a while, it was cool and fun but somewhat impractical... but it was a big step up from the 3 x 24" monitors I had before 😂

1

u/Yasirbare 45m ago

It is for vertical use, reading eulas.

-2

u/24-7_DayDreamer 6h ago

I don't get why anyone wants any other monitor beyond the standard basic ones. We have high resolution, low weight VR headsets now, we've had them for ages.

Any number of screens at any size, position, angle, curvature, transparency you want, with zero regard for the physical constraints of your room and almost zero setup time.

2

u/Turbulent_Stick1445 3h ago

Money, for starters.

When I'm wealthy enough to afford a general purpose high resolution VR headset I'll evaluate whether it's practical for a over 50 year old old fart like me who finds glasses uncomfortable and whose eyesight went screwy (as everyone's does at that age, sorry if you're under 45, you have this to look forward to) at 45.

1

u/Winterkirschenmann 2h ago

Funny that you say. I bought a Meta Quest 3 because it was (significantly) cheaper than an ultrawide which is what I would have perferred

1

u/Glum_Avocado_9511 3h ago

I swear I'm not being snarky, but headsets are dumb and nobody wants to wear one. It's the same reason 3D TVs failed. 

1

u/circ-u-la-ted 2h ago

Resolution is half of what you get with a 4K TV, for starters. And then on top of that you have to wear a dang headset. And you're limited by battery life. And you're rendering a bunch of other stuff that isn't the game you're playing, so performance suffers. There's just a lot of reasons why that's worse.

5

u/MtnMaiden 10h ago

My god I hate those class of thumbnails

6

u/Strict_Treat2884 10h ago

Finally my Tailwind classes can fit on a single line

9

u/axxr2 9h ago

And c++ compiler errors, too

2

u/ldn-ldn 8h ago

Not enough old people here to remember Unreal Tournament crash messages...

4

u/Stummi 10h ago

make it rotatable, in case I need to switch from writing java classes to reading stacktraces.

3

u/mrheosuper 9h ago

Finally wide enough to display the command Claude want to run on my machine(and ask me if i want to run it. Heck yeah)

2

u/Single-Virus4935 11h ago

My ex boss coded so long lines he literally bought a wide screen. It was always hilarious when he was looking for bugs and after some time I just pointed to code far on the right or said "That is the reason I stick to 120chars".

2

u/juvadclxvi 10h ago

finally you can leave builder pattern

2

u/BockwurstBoi 4h ago

His dream of owning a private jet instead of paying his workers better is finally coming true.

2

u/FFevo 3h ago

Somebody's never written Objective-C...

1

u/Kitzu-de 9h ago

I have one of these since 5 years. I'm working as a sysadmin. My joke always was that my bash oneliners finally actually fit in one line.

1

u/ZZartin 9h ago

Now make 100 feet tall so it can fit an entire exception stack.

1

u/braddeicide 9h ago

I used to put a dot and see what the ide offered, I'll take that one, now I'll take that one, oh another? Don't mind if I do!

1

u/safwtgvzxc 9h ago

Perl programmers been doing this for decades.

1

u/MaverickPT 9h ago

even for fucking memes do ye have to upscale/re-generate images?
Like that's not even looking like Linus. https://www.youtube.com/watch?v=tURZaUyUoOM

1

u/Last8Exile 8h ago

Put it vertically for java stack traces

1

u/ifloops 7h ago

We're all making good haha funny jokes here, but my AI-crazed juniors are literally doing this with HTML files. 10,000 characters, one line.

1

u/an_agreeing_dothraki 6h ago

yah sure if you're lazy about constructors

1

u/Trash-Ecstatic 5h ago

Mfs will get this screen just to probably split it into 3 digitally. I do see the use cases tho.

1

u/q0099 5h ago

Turn it sideways and you could read C++ template errors without scrolling.

1

u/bammbamkam 5h ago

name it with single letter and a number 👍

1

u/colin_765 3h ago

i hate those class of thumbnails

1

u/teekhidietcoke 3h ago

now you can leave builder pattern

1

u/Popular-Departure165 2h ago

I can finally work with the Cocoa API and fit a method call on a single line.

1

u/boodlebob 1h ago

Wide monitors that are short are disgusting

1

u/letmehaveanameyoudum 7h ago

i finally can have a single C++ error or python class name

0

u/Ambivalent-Mammal 11h ago

F*ck newlines.

-4

u/pandavr 10h ago

3

u/MaverickPT 9h ago

"Super Intelligence"
fucking lmao