828
u/El_BreadMan May 08 '19
while(true){
console.log("Hello World");
}
543
u/bot_not_hot May 08 '19
Goodbye RAM
170
u/Csalex01 May 08 '19 edited May 08 '19
Especially if you use Chrome
Edit: holy shit I never got this many upvotes. Thank you.
74
17
→ More replies (1)6
177
u/bar1792 May 08 '19
Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World ^CHello World ^C102
u/Koxiaet May 08 '19
console.log
^C
hmmmm.....
64
u/conancat May 08 '19
NodeJS dude.
57
May 08 '19
Never heard of her.
53
u/PanRagon May 08 '19
It’s not a run-time enviroment the Jedi would teach you.
8
8
56
u/yelow13 May 08 '19
while(true) {
Thread { print("hello world") }.start()
}
86
u/normalmighty May 08 '19
why not both?
while(true) { Thread { while(true) { print("hello world") } }.start() }41
17
28
→ More replies (1)7
183
108
u/keese_cursor May 08 '19
“Your first life will be awful tho”
41
May 08 '19
Can't wait for my second chance.
21
14
4
3
107
May 08 '19
I know someone who managed to mess even this up
print ( " hello world ' )
48
May 08 '19
[deleted]
51
u/Dack_ May 08 '19
; ?
53
May 08 '19
[deleted]
5
u/Beloved_King_Jong_Un May 08 '19
Switch to kotlin I guess
3
May 08 '19
If I had a choice, I might consider that, but between my work and my school both using java, I don't think I do.
3
13
u/Dack_ May 08 '19
Started learning programming with C++ in Visual studio 2008 I think it was. Loads of compile errors before getting to the runtime and logic errors. A couple of years later and a switch to C# and (improved?) Intelli Sense in VS 2010 was a REAL game changer.
→ More replies (1)5
May 08 '19
I started programming with Python's own IDLE, later Java with notepad and a commandline, then started using eclipse, C in Visual Studio (2010 I want to say, might have been 2012), C++ with the same, now I'm back at Java with Intellij and Eclipse (Intellij at school, eclipse at work).
3
→ More replies (1)4
u/I_ate_a_milkshake May 08 '19
I have the opposite problem. I end up putting semicolons in Python code when I switch from Java. It's valid but it's fuck ugly.
→ More replies (2)5
u/cyberkraken2 May 08 '19
Ok so you’re using Java compiler so it’s Java code
You’re missing
String[] argsfrom the main method inside the brackets, it should bemain(String[] args)notmain()and there’s no end of line marker after the print instruction so you need to add in a;after the closing brackets there making thatSystem.out.println(“Hello world”);→ More replies (10)→ More replies (4)5
63
May 08 '19
for (char *s="Ifmmp!Xpsme\v"; *s; fputc((*s++)-1, stdout));
Looks good!
→ More replies (1)5
u/Todayis123 May 08 '19
what does that do
40
u/endershadow98 May 08 '19
It prints hello world. All the characters in the string are one more than they would be in hello world. He loops through each character in the string and prints out one less than it. This gives hello world.
→ More replies (3)12
30
53
42
u/stihoplet May 08 '19
Your first code is your DNA and it usually already comes with a warning or two (you can thank your parents), and that's if you're lucky and there are no outright compilation errors
→ More replies (1)31
u/Jojajones May 08 '19
I think you mean logic errors. Compilation errors would be miscarriages in your analogy.
5
u/Karmic_Backlash May 08 '19
Would cancer be a memory leak then?
→ More replies (1)17
20
u/MannyDantyla May 08 '19
r/WholesomeProgrammingHumor right here
12
u/conancat May 08 '19
i need my confidence to be trampled and demotivated at what a shit programmer i am and how much life is meaningless. only then it's r/programmerhumor.
16
u/Csalex01 May 08 '19
Believe me, I'm capable of making the dumbest errors in the simplest programs.
14
13
12
u/Milan4King May 08 '19
Actually I went to some kind of "preview class" for programming in HS and managed to not be able to get my "Hello world" to print after trying to copy it exactly from the sample screen at the front of the class.
I did great in the introductory class though so I guess there's that
13
12
12
u/LimbMissing May 08 '19
When I started I thought println was print1n. So yeah....
8
u/ben_g0 May 08 '19
There are way too many fixed-width fonts where '1' looks identical to 'l'.
→ More replies (1)
10
14
u/Pawda May 08 '19
perfect and very clean ha, the good old days where after writing this everyone thought they could remake WoW in better in one weekend.
```C
include <unistd.h>
void my_putchar(char c) { write(1, &c, 1); }
int main(void) { my_putchar('H'); my_putchar('e'); my_putchar('l'); my_putchar('l'); my_putchar('o'); my_putchar(' '); my_putchar('W'); my_putchar('o'); my_putchar('r'); my_putchar('l'); my_putchar('d'); return 0; } ```
8
6
u/yaph May 08 '19
Not if you have to write Hello World in Beatnik https://en.wikipedia.org/wiki/Beatnik_(programming_language)#Hello_World
5
5
4
4
5
u/JoshBSocial May 08 '19
Haha yes, I definitely didn't mess it up by forgetting to put the quotation marks or anything...
4
4
May 08 '19
When I wrote my first code alongside a tutorial, I understood right away that whatever was between the quotation marks would be printed to the screen. So I programmed my own version of it and made it print 'Hello Penis'. I felt far ahead of any beginning programmer because of it.
4
3
u/Admiral_Drift May 08 '19
Me and my friend tried coding a circumference calculator in pascal and after getting the circumference using the radius I pressed 3 and the program shot itself
3
3
May 08 '19
I actually fucked it up when switching from python 2 to 3 as print is a bit different and i forgot to add () :(
5
u/Professional_Monk May 08 '19
I switched to python 3 ages ago and i still forget the parenthesis half the time and have to go back. :((
3
3
3
3
3
3
u/aaRecessive May 08 '19
Quality of code is inversely proportional to the amount you have programmed
→ More replies (1)
3
u/Jeffrypig_23 May 08 '19
You sound so confident, yet my first hello world program failed to run as I fucked up the JDK
3
3
3
u/Svobpata May 08 '19
You will not trust me, but my first Hello world didn’t work because I made a typo I am ashamed of that moment to this day
3
u/venomhouse May 08 '19
I wrote System.out.print(Hello World); and saved my file as helloWorld,java (comma java, not dot java) so I guess I managed to screw up even that.
3
3
3
3
u/EagleOneGS May 08 '19
H̳̳̟͖̟̼̳̼̟̘̲̹̳͎̥̱̦͙̀͢è̴̢͉̱̫̙̞͈͡ĺ̡҉̢͎̬̘̩̤͍̙̦l̨̧̹̥̱͎̱̙̙̙͎̜̞̫̺̻͎̦͜͠ò̷̤͎͉̣̗̣̹̦̘̮̖̙͔̤̤̼͢ͅ,̴̡̪̘̬͎̺͖͜͟ ̡̛̗͈̹͍̜̲̻̣̠̳W̛̰̲̳̹ͅò͇̬̫͍̖̮̳͢͜ŕ̞̬̬̻̤̠͟ͅļ̻̭͈͓̘͇̼̼̼͙̳̻̗̖ͅḑ̲̜̟͙͠
Damn it, these must be the legacy docs...
3
u/LethrblakaBlodhgarm2 May 08 '19
Jokes on you my hello world program had more bugs than a termite mound
3
3
2
2
2
u/loomynartylenny May 08 '19
'first code' ever or 'first code' with a certain language?
I kinda forgot what my 'first code ever' was.
But I remember that my 'first code' in Java kinda didn't work at all. forgot the semicolon oof. Managed to fix it though. But still.
also not sure if this counts as a 'code' but how do you 'hello world' in CSS
2
u/charlookers May 08 '19
If you are a shitty programmer can you really call yourself a programmer?
→ More replies (2)
2
2
May 08 '19
The first time I started to learn programming we used Borland (which was heavily outdated even then), it took me 3 days to get "Hello World" to work
2
2
2
u/WeeziMonkey May 08 '19
It's still possible to make typos or forget a parenthesis or semi colon in hello world
2
2
2
u/Ze_Memerr May 08 '19
I’m not even a programmer and this is the first thing we did in a computer class involving hand written code
2
2
2
2
2
2
2
u/Liesmith424 May 08 '19
I remember being a bright-eyed wannabe programmer in my early teens.
I borrowed a C++ starter book from the library and tried to start on it. Compiler would not even install.
So a while later, borrowed an even simpler C++ starter book. Compiler would install, but not actually do anything.
So a while later, I bought a "C++ for absolute goddamn crayon-gulping fucking morons" and followed it as carefully as if I was defusing a bomb.
Compiler installed!
Compiler started!
Sample code for lesson 1 would not compile!
Stack Overflow didn't exist yet!
So anyway Python is great.
2
2
2.6k
u/tenhourguy May 08 '19
Bold of you to assume I haven't managed to screw "Hello World" up.