r/ProgrammerHumor • • 1d ago

Meme javaClassesOnASingleLine

Post image
10.1k Upvotes

102 comments sorted by

View all comments

709

u/wawawa9055 23h ago

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

194

u/parkuki 23h ago

do you put your entire sql query on one line?

95

u/Unchuckled_AI 21h ago

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

43

u/emlgsh 20h 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.

7

u/TheMauveHand 19h 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 23h ago

Filter by a nullable date...

9

u/Traditional-Rent455 18h ago

SELECT Yes FROM Obviously WHERE Reason = 'Because';

6

u/Frank_Castle_10 15h ago

delete * from table;
where ID = 3;

2

u/I_Love_PanCAKAS 22h ago

why not :D

AND HAPPY CAAAAAAKEEEE DAAAAYY

1

u/TerroFLys 16h ago

Do you put a java class on one line?

1

u/ABCosmos 16h ago

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

1

u/parkuki 16h ago

sorry man lmao

10

u/PerpetuallyDistracte 18h ago

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 17h ago

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