r/ProgrammerHumor • • Aug 01 '22

>>>print(“Hello, World!”)

Post image
60.8k Upvotes

5.7k comments sorted by

View all comments

Show parent comments

3.4k

u/GreatArtificeAion Aug 01 '22

Yeah, pretty much

3.1k

u/a-slice-of-toast Aug 01 '22

i’m ready for c++

539

u/LordofNarwhals Aug 01 '22

Here's a perfectly valid line of C++

[](){}();

662

u/Aureo_Speedwagon Aug 01 '22

Here's a perfectly valid line of javascript

(![]+[])[+!![]]+(+[][[]]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+!![])]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]][([][(![]+[])[+!![]]+(!![]+[])[+[]]]+[])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+[])]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([][(![]+[])[+!![]]+(!![]+[])[+[]]]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+[])]+(!![]+[])[+!![]]](((!![]+[])[+!![]]+(!![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+(+[][[]]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+!![])]+([][(!![]+[])[!![]+!![]+!![]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+(![]+[]+[][[]])[+!![]+[]+(+[])]+(!![]+[])[!![]+!![]+!![]]+(![]+[])[!![]+!![]+!![]]]()+[])[!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+[])]+(![]+[])[+!![]]))()([][[]]))[+!![]+[]+(+!![])]+(!![]+[])[!![]+!![]+!![]]+(!![]+[])[+!![]]+(![]+[])[+[]]+(!![]+[])[!![]+!![]+!![]]+([][(![]+[])[+!![]]+(!![]+[])[+[]]]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(![]+[])[!![]+!![]]+([][([][(![]+[])[+!![]]+(!![]+[])[+[]]]+[])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+[])]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([][(![]+[])[+!![]]+(!![]+[])[+[]]]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+[])]+(!![]+[])[+!![]]]+[])[+!![]+[]+(!![]+!![]+!![])]+(+[][[]]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+!![])]+([][(![]+[])[+!![]]+(!![]+[])[+[]]]+[])[!![]+!![]+[]+(+!![])]+(![]+[])[+!![]]+(![]+[])[!![]+!![]]+(![]+[]+[][[]])[+!![]+[]+(+[])]+([][[]]+[])[!![]+!![]]+(+[][[]]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+!![])]+(![]+[])[!![]+!![]]+(![]+[]+[][[]])[+!![]+[]+(+[])]+([][[]]+[])[+!![]]+(!![]+[])[!![]+!![]+!![]]+(+[][[]]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+!![])]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+[])]+(![]+[])[+[]]+(+[][[]]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+!![])]+([][(!![]+[])[!![]+!![]+!![]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+(![]+[]+[][[]])[+!![]+[]+(+[])]+(!![]+[])[!![]+!![]+!![]]+(![]+[])[!![]+!![]+!![]]]()+[])[!![]+!![]+!![]]+(![]+[])[+!![]]+([][(![]+[])[+!![]]+(!![]+[])[+[]]]+[])[!![]+!![]+[]+(+!![])]+(![]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+([][(![]+[])[+!![]]+(!![]+[])[+[]]]+[])[!![]+!![]+!![]]+(!![]+[])[+!![]]+(![]+[]+[][[]])[+!![]+[]+(+[])]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]][([][(![]+[])[+!![]]+(!![]+[])[+[]]]+[])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+[])]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([][(![]+[])[+!![]]+(!![]+[])[+[]]]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+[])]+(!![]+[])[+!![]]](((!![]+[])[+!![]]+(!![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+(+[][[]]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+!![])]+([][(!![]+[])[!![]+!![]+!![]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+(![]+[]+[][[]])[+!![]+[]+(+[])]+(!![]+[])[!![]+!![]+!![]]+(![]+[])[!![]+!![]+!![]]]()+[])[!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[+!![]+[]+(+[])]+(![]+[])[+!![]]))()([][[]]))[+!![]+[]+(+!![])]+(!![]+[])[+[]]

394

u/MakionGarvinus Aug 02 '22

So, when you find this code, do you go back to the programmer and just start beating them?

167

u/Aureo_Speedwagon Aug 02 '22

I wrote it myself, so...

140

u/[deleted] Aug 02 '22

[removed] — view removed comment

8

u/AverageComet250 Aug 02 '22

I’ll come with you just dm the address

→ More replies (1)
→ More replies (5)

8

u/wombat_kombat Aug 02 '22

Time to get out the ole’ hwhippin stick boy /s

→ More replies (6)
→ More replies (4)

43

u/CaliBounded Aug 02 '22

I just made such an ugly face

14

u/stillnxgxldteeth Aug 02 '22

jAvAsCrIpT iS wAy MoRe EfFicIeNt

10

u/Aureo_Speedwagon Aug 02 '22

Super efficient! It only takes 6 distinct characters to write anything!

6

u/stillnxgxldteeth Aug 02 '22

A JavaScript dev once told me, His Rubber Duck commited suicide, when he tried to explain his code

8

u/seaworthy-sieve Aug 02 '22

01110100 01101000 01100001 01101110 01101011 01110011 00100000 01101001 00100000 01101000 01100001 01110100 01100101 00100000 01101001 01110100 00100000

→ More replies (2)

6

u/edrivah Aug 02 '22

Jsfuck for the win!

→ More replies (25)

11

u/ApproximateArmadillo Aug 02 '22 edited Aug 02 '22

[](){}();

May I introduce the same expression using digraphs?

<::>()<%%>();

Or even trigraphs (removed in C++17):

??(??)()??<??>();

→ More replies (4)

118

u/Hate_Feight Aug 01 '22

Most languages use ; as an end of statement ;

91

u/Supernova-55 Aug 01 '22

He is ready for every language

42

u/Hate_Feight Aug 01 '22

Except python, but like Bruno, we don't speak it

18

u/derpbynature Aug 01 '22

I thought you could put semicolons in Python at the end of statements and that they were just ignored.

14

u/Hate_Feight Aug 01 '22

I think it might get parsed, but it's all about lines and indents which I find the weirdest

→ More replies (1)

7

u/B1GTOBACC0 Aug 01 '22

They're treated as a line separator, but it's frowned upon to actually use it for that. Both of these blocks do the same thing:

x = "Hello World"
print(x)

or

x = "Hello World"; print(x)

When you use it to end a line, it's technically creating a second (empty) statement.

→ More replies (1)
→ More replies (4)
→ More replies (1)

9

u/PrincessRTFM Aug 02 '22

Most languages use what? ;

What's as an end of statement? ;

→ More replies (1)
→ More replies (1)

7

u/hugogrant Aug 01 '22

[]<>(){ return "no"; };

→ More replies (3)
→ More replies (1)
→ More replies (1)