r/ProgrammerHumor • • Oct 19 '26

Meme javaClassesOnASingleLine

Post image
11k Upvotes

110 comments sorted by

804

u/wawawa9055 Oct 19 '26

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

221

u/parkuki Oct 19 '26

do you put your entire sql query on one line?

114

u/Unchuckled_AI Oct 19 '26

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

53

u/emlgsh Oct 19 '26

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.

8

u/TheMauveHand Oct 19 '26

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.

1

u/npqd Oct 25 '26

I put whole microservice java project in a single line including controllers, yaml anf flyway scripts, all in single file

26

u/errepunto Oct 19 '26

Filter by a nullable date...

8

u/Traditional-Rent455 Oct 19 '26

SELECT Yes FROM Obviously WHERE Reason = 'Because';

6

u/Frank_Castle_10 Oct 19 '26

delete * from table;
where ID = 3;

3

u/I_Love_PanCAKAS Oct 19 '26

why not :D

AND HAPPY CAAAAAAKEEEE DAAAAYY

1

u/TerroFLys Oct 19 '26

Do you put a java class on one line?

2

u/danielcw189 Oct 20 '26

JavaJokeClassNamesLongFactoryAbstractInterfaceProvider:)

2

u/TerroFLys Oct 20 '26

Haha yea

1

u/ABCosmos Oct 19 '26

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

1

u/parkuki Oct 19 '26

sorry man lmao

11

u/PerpetuallyDistracte Oct 19 '26

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

12

u/NicholasAakre Oct 19 '26

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

254

u/Revolution64 Oct 19 '26

class A {}

Here you go, fits on your phone screen.

131

u/originalmicrousb Oct 19 '26

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

47

u/AliStarr182 Oct 19 '26

This breaks my workflow

14

u/oldsecondhand Oct 19 '26

Works on my Nokia 3310.

7

u/lurking_physicist Oct 19 '26

So you're that guy...

1

u/xplosm Oct 19 '26

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 Oct 19 '26

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

3

u/Traditional-Rent455 Oct 19 '26

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

3

u/RupertPupkin85 Oct 19 '26

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

169

u/RadzimierzWozniak Oct 19 '26

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

115

u/Skellicious Oct 19 '26

evaluateAndExecuteFilterOperationOnTargetObjectPayload()

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

28

u/RadzimierzWozniak Oct 19 '26

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

23

u/afdbcreid Oct 19 '26

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

6

u/harbourwall Oct 19 '26

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.

23

u/BlitzAceSamy Oct 19 '26

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

6

u/Agitated-Acctant Oct 19 '26

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 Oct 19 '26

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

2

u/ZunoJ Oct 19 '26

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 Oct 19 '26

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

48

u/bpkiwi Oct 19 '26 edited Oct 19 '26

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.

10

u/dbath Oct 19 '26

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.

83

u/Groentekroket Oct 19 '26

I’m sure they ment class name. 

79

u/click-to-reveal Oct 19 '26

I'm sure you meant meant.

9

u/emlgsh Oct 19 '26

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

21

u/Roppano Oct 19 '26

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

3

u/thanatica Oct 19 '26

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

1

u/goatanuss Oct 19 '26

Public abstract class AbstractSingletonProxyFactoryBeanProviderStrategyDelegatingCompositeFactoryFactoryBuilderAdapterDecoratorFacadeTemplateMethodContextAwareDependencyInjectionConfigurationFactoryAbstractFactoryProviderFactoryBeanImpl

8

u/Leo8178 Oct 19 '26

Still not wide enough for my one-liners.

8

u/MtnMaiden Oct 19 '26

My god I hate those class of thumbnails

8

u/Strict_Treat2884 Oct 19 '26

Finally my Tailwind classes can fit on a single line

13

u/Chipper_Bandit Oct 19 '26

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

5

u/remy_porter Oct 19 '26

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 Oct 19 '26

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 Oct 19 '26

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.

3

u/skafast Oct 19 '26

Peripheral vision in gaming or seamless double-screen workflow.

2

u/ZunoJ Oct 19 '26

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 Oct 19 '26

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 Oct 19 '26

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

2

u/Yasirbare Oct 19 '26

It is for vertical use, reading eulas.

1

u/mrwedders Oct 19 '26

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/heyuhitsyaboi Oct 19 '26

I used a 49” 32:9 from 2019-2025. Its a solid approach but you gotta use it right. Think of it as a screen that can be divided a whole bunch of ways more comfortably. I often had it divided into 2-3 sections and if was super configurable

1

u/punkpang Oct 20 '26

I have it, I got it just because I could, no other real reason. It's not great but it doesn't suck either.

1

u/AfonsoFGarcia Oct 20 '26

Honestly because it’s neat and I still get to keep the advantages of a multiple monitor setup. And this way I can have a 21:9 window of IntelliJ and the rest of the screen for Reddit.

-4

u/24-7_DayDreamer Oct 19 '26

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.

4

u/Glum_Avocado_9511 Oct 19 '26

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. 

0

u/24-7_DayDreamer Oct 19 '26

Headsets are great and many people love to wear theirs.

3

u/Turbulent_Stick1445 Oct 19 '26

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 Oct 19 '26

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/24-7_DayDreamer Oct 19 '26

A decent headset costs the same or less than one of these over the top fancy monitors.

A VR headset and AR glasses are different things. VR headsets have straps that go over your head, whatever comfort issues you have with glasses aren't likely to be applicable.

There are prescription lense inserts you can put on top of the headsets lenses.

3

u/circ-u-la-ted Oct 19 '26

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.

-1

u/24-7_DayDreamer Oct 19 '26

Resolution is half of what you get with a 4K TV

If you sit with your face right up against your tv maybe

you have to wear a dang headset

Which is perfectly fine these days. They're low weight and we have very comfortable padded straps.

you're limited by battery life

Not in any situation where you were going to be seated looking at a monitor anyway

you're rendering a bunch of other stuff that isn't the game you're playing, so performance suffers

You could if you wanted to I guess, but that's the same anyway?

3

u/circ-u-la-ted Oct 19 '26

IDK, I have my TV about 10 feet away and the difference between 1440p and 4K is quite noticeable. On the other stuff, maybe you're right—I only have a quest 2, and that's been my experience. I have to say that looking at the Quest 3 I wouldn't expect it to feel like wearing nothing at all (nothing at all (nothing at all (nothing at all))).

0

u/24-7_DayDreamer Oct 19 '26

You want the Bigscreen Beyond if you want it to feel like absolutely nothing at all, but you do have to sacrifice some FOV for that. I think the Steam Frame is a good middle ground

1

u/PleaseNoMoreSalt Oct 20 '26

Unless you're buying a meta headset, even the 49 inch widescreens are gonna be the cheaper option (monetarily, anyway. Meta makes you pay the difference with you privacy). God help you if you want something with decent passthrough to get the same QOL as being able to look away from a monitor for a couple seconds, because that bumps up the price even more. It's also a pain to show people what you're working on when the screen can only go on one face at a time, AND using a VR headset instead of a TV means you can't use it for movie nights unless you live alone and never host your friends.

Plus you have to remember that low weight != no weight, and lots of people wear glasses so their headsets would need to be bulkier by default to accommodate that. I understand that prescription VR lenses exist, but my prescription changes every couple years, so that'd jack up the headset price even more.

12

u/_evilpenguin Oct 19 '26

imagine the samsung 57”

6

u/Stummi Oct 19 '26

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

9

u/axxr2 Oct 19 '26

And c++ compiler errors, too

2

u/ldn-ldn Oct 19 '26

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

4

u/mrheosuper Oct 19 '26

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)

3

u/Kitzu-de Oct 19 '26

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.

3

u/BockwurstBoi Oct 19 '26

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

2

u/Single-Virus4935 Oct 19 '26

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 Oct 19 '26

finally you can leave builder pattern

2

u/MaverickPT Oct 19 '26

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

2

u/Last8Exile Oct 19 '26

Put it vertically for java stack traces

2

u/FFevo Oct 19 '26

Somebody's never written Objective-C...

1

u/ZZartin Oct 19 '26

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

1

u/braddeicide Oct 19 '26

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/[deleted] Oct 19 '26

Perl programmers been doing this for decades.

1

u/ifloops Oct 19 '26

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 Oct 19 '26

yah sure if you're lazy about constructors

1

u/Trash-Ecstatic Oct 19 '26

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

1

u/q0099 Oct 19 '26

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

1

u/bammbamkam Oct 19 '26

name it with single letter and a number 👍

1

u/Popular-Departure165 Oct 19 '26

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

1

u/boodlebob Oct 19 '26

Wide monitors that are short are disgusting

1

u/56kul Oct 19 '26

Real talk, who the fuck would even want a monitor this long and short? I get that it’s supposed to be ‘immersive’, or whatever, but I’d imagine most games would just show up as distorted. And it would suck for literally any other non-gaming task.

I say this as an ultrawide lover, btw. My current display is an ultrawide, and so was my previous one. Absolutely adore that form factor. But my monitor is still more sane than this monstrosity…😭

1

u/KagakuNinja Oct 19 '26

The naming conventions come from OOP languages like C++ and predate Java. The vast majority of standard library Java class names are fine. This is yet another stupid meme that refuses to die.

1

u/lvcash_ Oct 20 '26

Still can’t fit a single Tailwind class

1

u/MehPropy Oct 20 '26

flip it vertically and you can use it for logs

1

u/letmehaveanameyoudum Oct 19 '26

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

0

u/Ambivalent-Mammal Oct 19 '26

F*ck newlines.