this post was submitted on 10 Feb 2024
609 points (99.7% liked)

196

16098 readers
2105 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 33 points 6 months ago (4 children)

No line breaks. Just one long line of code.

[–] [email protected] 32 points 6 months ago* (last edited 6 months ago) (3 children)

All line breaks. Just one tower of code.

class
HelloWorld
{
public
static
void
main(String[]
args)
{
System.out.println("Hello,
World!");
}
}
[–] [email protected] 15 points 6 months ago* (last edited 6 months ago)

as always, c++ lets us do better in breathtakingly elegant fashion:

#\
i\
n\
c\
l\
u\
d\
e\
 \ 
<\
i\
o\
s\
t\
r\
e\
a\
m\
>

finishing out hello world is left as an exercise to the reader, but the advantages and superior performance of this format should be obvious

load more comments (2 replies)
load more comments (2 replies)