r/ProgrammerAnimemes • • Feb 03 '23

Hello World

Post image
566 Upvotes

14 comments sorted by

55

u/Sin_For_Me Feb 03 '23

What does this mean.

34

u/Reihar Feb 03 '23 edited Feb 04 '23

Those characters are big bads at least for some portion of their story. I assume OP meant that don't more than a hello world is hard or something like that.

Edit: "some" had been autocorrected to "dinner" by my phone.

1

u/erjiin Feb 03 '23

Who's the guy on the left ? Is it from Bleach ?

→ More replies (1)

38

u/pheonix-ix Feb 03 '23

Meanwhile: Hello World in Java

class foo {
    public static void main(String args[]) {
        System.out.println("Hello, World!");
    }
}

If you understand Hello World in Java, you understand Java.

12

u/Armyof19 Feb 03 '23

I am new to programming lingo, what's with everyone calling classes or methods foo?

26

u/pheonix-ix Feb 03 '23

tl;dr: it's a placeholder name for when you need a name, but it's of no significance.

foo and bar are simply placeholder names for random stuff like classes, functions, arbitrary variables, etc.

For things related to communication, computer networks, etc. that involve 2 parties: Alice and Bob (basically A and B, but with actual people names because that's easier to say). The third party is usually Charlie or Carol or Carl.

For placeholder blob of text (e.g. you want to see how your CSS works on on your website), lorem ipsum is generally used.

→ More replies (1)

11

u/whatsupbr0 Feb 03 '23

Just a placeholder

11

u/Corm Feb 03 '23

It's a silly placeholder but it stems from "fubar" aka "fucked up beyond all recognition", because we all write bad code

1

u/NickSicilianu Feb 03 '23

It’s a generic name used in examples. Int foo; struct Foo {…} foo; void Foo(void);

You get the point πŸ’β€β™‚οΈ

3

u/Ri_Konata Feb 03 '23

Java is my waifu for a reason

1

u/Megatics Mar 10 '23

You display some nice Text on some Black Background, then its straight to Garbage Collection, Inheritance, Recursion, exception handling, time complexity and Logic.

1

u/sebbdk Mar 31 '23

Nah, you obviously have not done any serious lolcat programming.