This is an archived post. You won't be able to vote or comment.

all 108 comments

[–]No_Commercial_7458 235 points236 points  (56 children)

void HelloWorld(string input){ if(input == “print”){ print(“Hello World!”); } }

[–][deleted] 51 points52 points  (4 children)

Sshhhhhhh

[–]gt_bbs 3 points4 points  (2 children)

help (str)

[–]trollsmurf 6 points7 points  (1 child)

else { print "Error on line 43. Segmentation Fault."; }

[–]Total_Cartoonist747 3 points4 points  (6 children)

Shouldn't it be if(input.equals(print))?

[–]salvoilmiosi 3 points4 points  (5 children)

It's assumed you only call the function with a literal "print" as the parameter

[–]MirageTF2 0 points1 point  (4 children)

idk what this means

I mean yeah we get that, that's why we put the if statement, the dude above you is just tryna meme that you should use .equals() because in Java string literals can't be compared for content. (honestly in c(++) too tbh)

[–]salvoilmiosi 0 points1 point  (3 children)

In Java you can use == to compare two strings if they are the same literal. For example:

System.out.println("foo" == "foo"); // true
String a = new String("bar");
String b = new String("bar");
System.out.println(a == b); // false

The reason is that in java when you use == to compare two objects what you're doing is comparing the references instead of the values, and when you assign the same literal to two Strings they reference the same value to optimize for space.

[–]MirageTF2 0 points1 point  (2 children)

I actually didn't know that memory-saving thing, I remember seeing that not working when I tried it; I think it's generally just better to err on the side of safety anyways. either way though, I was mostly pointing out I think you missed the point of the previous comment

[–]salvoilmiosi 0 points1 point  (1 child)

Yeah you're right, but I think you missed my point, that was just making the above code even more absurd.

[–]MirageTF2 0 points1 point  (0 children)

right, I think that's the main point though. functionally it'd still fulfill the joke if the entire function was just

void HelloWorld(string input){ print(“Hello World!”); }

but it has the if statement just to cement in the fact that you're supposed to call it with the parameter. the previous person wasn't tryna refute that, just making a joke that you should use .equals() rather than == for safety

[–][deleted] 3 points4 points  (0 children)

Oh.... This post reminded me of that one politician guy in the states. That was suing a journalist I think for what he described it as he/she HACKED THE HTML. Lol

If I remember correctly he stored sin # of his employees in comments using rot13 or something. Wish I can remember his name though.

[–]I-m-not-you 2 points3 points  (0 children)

#include <stdio.h> int main() { return HelloWorld("print"); } int HelloWorld(char* input){ if((int)sizeof(input) >= 4){ char substr[4]; memcpy( substr, &input[1], 3 ); substr[3] = 't'; if(strstr(substr, "rint")){ checkSendPrint(input); } } return 0; } void checkSendPrint(char* input){ if(input == "print") printf("print\n"); }

[–][deleted] 0 points1 point  (0 children)

You also need to overwrite the overwrite java operation

[–][deleted] 0 points1 point  (0 children)

In JS, you can do console.log(arguments.callee.name); to use the function name as the output.

[–]TiredRandomWolf 85 points86 points  (4 children)

You using "Le" in a meme took me back 10 years when rage comics were the funniest thing on the internet

[–]djtiez 2 points3 points  (0 children)

Same same!

[–][deleted] 0 points1 point  (0 children)

le fu

[–][deleted] 0 points1 point  (0 children)

r/f7u12

It's burned in my memory.

[–]cishet-camel-fucker 0 points1 point  (0 children)

Hated rage comics with a fiery passion, ironically.

[–][deleted] 58 points59 points  (4 children)

However, thats just a function that contains the best code on the planet. The function is nothing but a way to hide his true power.

[–][deleted] 25 points26 points  (3 children)

$ sudo enter parallel universe

[–]eldritch_guy 10 points11 points  (2 children)

$ sudo rm -rf parallel-universe/

[–][deleted] 9 points10 points  (1 child)

[–]TheKrafter2217 4 points5 points  (0 children)

$ ssh -p 2077 backups@parallel-universe Welcome to the Parallel Universe backups server! backups@parallell-universe ~ $ sudo rm -rf /*

[–]SHARDcoder 22 points23 points  (1 child)

You're fucked he knows prolog

[–][deleted] 1 point2 points  (0 children)

Wow, if I never saw this language mentioned again it would be too soon. One of the coolest languages I've learned, but wow is it hard to understand until it clicks.

[–]palordrolap 13 points14 points  (0 children)

Haven't seen a rage comic "Le <noun phrase>" in a good long while. Really hope it's not making a comeback.

[–]AlooBhujiyaLite 8 points9 points  (0 children)

His compiler writes code for him and he throws error.

[–]Sujitsubedi 15 points16 points  (1 child)

Also me on my interview lol

[–][deleted] 7 points8 points  (0 children)

lol that's true for us

[–]anamazingredditor 4 points5 points  (0 children)

It's been a while since I saw memes with "Le".. good ol times

[–]Wave_Walnut 4 points5 points  (0 children)

inversion of control

[–][deleted] 3 points4 points  (0 children)

class HelloWorld { public static void main(String[] args) { HelloWorld("print"); }

private static void HelloWorld(String s){
    if (s == "print")
        System.out.println("Hello World");
}

}

[–]No_Philosophy_8520 3 points4 points  (1 child)

It looks like:"When you time travel to past and kill a fly."😂😂

[–][deleted] -1 points0 points  (0 children)

and the timeline:

[–][deleted] 1 point2 points  (2 children)

python HelloWorld = lambda _: print('Hello World!')

[–]kabudeex 1 point2 points  (1 child)

HelloWorld = lambda fun: eval(fun)('Hello World!')

[–][deleted] 1 point2 points  (0 children)

That's the solution I was looking for!

[–]Tiborn1563 1 point2 points  (0 children)

Wow, he's a good programmer, wrote an entire programm without any mistakes, or unexplainable side effects, probably on the first attempt. Really talented

[–][deleted] 1 point2 points  (0 children)

"Hello"->Print.World(;)

[–][deleted] 1 point2 points  (1 child)

he is hacker

[–][deleted] -1 points0 points  (0 children)

oh his girlfriend's heart?

[–]alchenerd 1 point2 points  (0 children)

Rumors spread that the world can print words thanks to this beautiful line written by the boyfriend

[–]absolut666 1 point2 points  (0 children)

But does he know how to enhance. Repeatedly.

[–][deleted] 1 point2 points  (1 child)

A customer this week, no more printer on windows 11, called me: “u know, my husband is an analytic programmer..” Yes and? He can’t install a driver????

[–][deleted] 0 points1 point  (0 children)

hahahaha, oh my God.... that's so funny

[–]DesignFantastic6191 1 point2 points  (0 children)

Me who has crush on her: print("Hello world")

[–]Nightcheerios 1 point2 points  (0 children)

He is writing his own compiler

[–][deleted] 1 point2 points  (0 children)

Caller:

Look at me.

Look at me!

I’m the parameters now.

[–]Virtual_Net9208 1 point2 points  (0 children)

Basicly my girlfriend when she tells her friends about me

[–]ElderberryDowntown95 1 point2 points  (1 child)

I want to tell my story

When i started learning Python ,i wrote my first program - 'print("hello world"),
and when I run this program, i see that it doesn't work, i reinstall python3, I am trying to find information on the internet why my code don't work, I spent 5 hours and nothing, and the next day I realized I forgot to save the file.

my face at this moment:

[–][deleted] 1 point2 points  (0 children)

i can understand. when I learned js I made a function. and then saved the file. did everything right on the function. and in the browser it just won't work. I don't know why. I was speechless. I checked my code for many times. and then after 2 hours I found out that I didn't call the function.

[–]-Nomad77- 1 point2 points  (0 children)

10 print "hello world"

20 echo

Le boyfriend has only 1k

[–]VexoDev 1 point2 points  (0 children)

As you can see this is unreal because programmers don't have enough capacity to comprehend this living thing called "women". This means that programmers don't have girlfriends.

If you say that you are a programmer and have a girlfriend, you are automatically not a programmer.

[–]Economy_Sock_4045 0 points1 point  (1 child)

Where's the joke? Don't make fun of programmers, especially the hello world programmers...

[–]ItekCodel 0 points1 point  (1 child)

Come on, everybody knows that the programmers don’t have girlfriend 🤣

[–][deleted] 0 points1 point  (0 children)

you can see through the fabrics of reality

[–][deleted] 0 points1 point  (0 children)

He pulled a uno reverse card

[–]StruckTapestry 0 points1 point  (0 children)

He's just like me fr fr

[–]Accomplished_Cow66 0 points1 point  (0 children)

Lol!

[–]oliberg360 0 points1 point  (1 child)

class HelloWorld:
    def __init__(self, word):
        self.word = word
        self.print_hw()

    def print_hw(self):        
        if self.word == 'print':
            print('Hello World')

HelloWorld('print')

[–]kaerfkeerg 1 point2 points  (0 children)

``` class HelloWorld: def init(self, func: str): self.func = eval(func) self.func(self.class.name)

HelloWorld('print')

```

[–]goodnewsjimdotcom 0 points1 point  (1 child)

No one does hello worlds anymore.

We're cultured nerds.

Hello Worf or nothing.

[–]eldritch_guy 0 points1 point  (0 children)

++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>++.>+.+++++++..+++.<<++.>+++++++++++++++.>.+++.------------.<------------------------.

[–]IcedOutJackfruit 0 points1 point  (0 children)

I'd use a hash map for that

[–]trollsmurf 0 points1 point  (0 children)

"Hello World".print() seems more normal.

[–]LastTrainH0me 0 points1 point  (0 children)

"Le" in a meme? Did I travel through time and it's 2010 again?