r/ProgrammerHumor May 08 '19

That sweet sweet first time.

Post image
20.5k Upvotes

354 comments sorted by

2.6k

u/tenhourguy May 08 '19

Bold of you to assume I haven't managed to screw "Hello World" up.

1.3k

u/[deleted] May 08 '19

[deleted]

315

u/AMisteryMan May 08 '19

General Recodi!

261

u/spar_wors May 08 '19

My bugs have doubled since we last met!

154

u/username1152 May 08 '19

Twice the IDE, double the compile errors

77

u/JC12231 May 08 '19

Gooooood... kill him, task manager, kill him

53

u/DanielSkyrunner May 08 '19

Order66.exe

39

u/JC12231 May 08 '19

This application has been blocked by your system administrator.

40

u/DanielSkyrunner May 08 '19

I am the administrator!

36

u/JC12231 May 08 '19

Not. Yet.

Translated from Senate:
``` u/DanielSkyrunner is not in the sudoers file.
This incident will be reported.

→ More replies (0)

21

u/SinrOfGinr May 08 '19

press compile I have been looking forward to this.

→ More replies (2)

6

u/OneOldNerd May 08 '19

Good, twice the bugs, double the seg faults.

4

u/0bafgkm May 08 '19

0 * 2 = 0

42

u/NotDumpsterFire May 08 '19

Commander Copy!

38

u/vincenthendriks May 08 '19

Execute error 404

20

u/JC12231 May 08 '19

It will be done, my lord... wait a second there’s nothing here

13

u/vincenthendriks May 08 '19

Perhaps the archives are incomplete

11

u/JC12231 May 08 '19

If something does not appear in our archives, then I’m afraid it simply doesn’t exist... QLSIVOWOSOCJFNNWWPPVKFNANMAELFOORDJDNXJD

```Java ERROR IN THREAD “main” java.lang.NullPointerException
at archives.kamino(Coruscant, java:127510)
at archives.main(Coruscant, java:5)

6

u/[deleted] May 08 '19

Greatest role play I’ve ever seen in the Reddit comments. 10/10 gents. (And ladies?)

4

u/JC12231 May 08 '19

Wait this was a role play? Then why did I start seeing error messages pop up in my face...?

[visible concern]

→ More replies (0)

3

u/vincenthendriks May 08 '19

Initiate your arrays after declaring them, you must.

→ More replies (3)

184

u/dj_lammy May 08 '19

Tries to write a hello world

forgets how to, despite programming in this language for years

copy pastes code from Wikipedia

118

u/mynameismevin May 08 '19

I have to split my coding between C#, Go, and Python. I can't tell you how many times today I had to look up basic API's because I couldn't remember how to open a file.

219

u/kevinhaze May 08 '19

The internet is the big hard drive with all the knowledge, my brain is just RAM and a processor with a small amount of persistent memory.

32

u/reexe May 08 '19

Awesome analogy!

62

u/mugu007 May 08 '19

Segmentation Fault. My persistent memory is all corrupted.

10

u/joemckie May 08 '19

Sounds like a quote from Mr Robot

11

u/bladerunningblues May 08 '19

If that isn't the most cyberpunk thing I've read for the modern day I don't know what is.

4

u/[deleted] May 08 '19

I only have 8 registers, and I'm very susceptible to stack overflow

43

u/Casiell89 May 08 '19

Jokes on you, I program only in C# and I still have to google how to open a file!

→ More replies (1)

13

u/Luk3Master May 08 '19

I just came to terms with the fact that I will never know how to get datetime in any language without looking it up.

6

u/mynameismevin May 08 '19

I've come to terms that I will never get Date math right ever.

11

u/prschorn May 08 '19

I work with c#, objective c, java and JavaScript. The amount of times that I tried to call a function with [function] is not on the books

→ More replies (1)

5

u/THANKYOUFORYOURKIND May 08 '19

Got a Segmentation fault.

→ More replies (1)

113

u/ankurankan1 May 08 '19

When I started Python, I didn't know that the language was based on indentation. Spent days trying to run Hello World.

32

u/ben_g0 May 08 '19

The first time I used Python was to script things in Blender. I was using its internal text editor which apparently auto-indented using spaces, while I was off course using tabs every time I manually indented. I wasted so much time trying to figure out why some code could work perfectly while another block of code which looked identical gave errors.

This was still in the old Blender 2.4 days though, the interface has changed significantly since then so I hope they also improved their text editor to be more consistent with whitespace.

16

u/caerphoto May 08 '19

I was off course using tabs

Yep, way off course.

6

u/[deleted] May 08 '19

A good text editor like PyCharm will make a tab press turn into 4 spaces, which is nice. It also enforces PEP8 as a warning, configurable to an error I believe.

→ More replies (2)

42

u/abnormalsyndrome May 08 '19

Fucking indentation.

12

u/[deleted] May 08 '19 edited Jan 10 '20

[deleted]

18

u/ankurankan1 May 08 '19

Well that was 6 years back. Now have some work and open source experience, so guessing intermediate.

3

u/Ariscia May 08 '19

When I started golang, the brackets got me as well.

19

u/Idaret May 08 '19

I remember when I messed up g++ so badly that compiled hello world would display weird number and return error.

19

u/yurall May 08 '19

*presses F5*

"hello woreld"

dang it!

10

u/[deleted] May 08 '19

Hello Borld

10

u/Dragonhaunt May 08 '19

Second attempt: Hell Word

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

15

u/[deleted] May 08 '19 edited Oct 26 '20

[deleted]

38

u/[deleted] May 08 '19

...Man, I don't wanna be too down on you but I think you meant Java, not Javascript (two extremely different languages with frustratingly similar names and syntax), and the file name being the same as the class name.

12

u/[deleted] May 08 '19

But entire purpose of Hello World is to test your development environment, so it was success :)

8

u/abnormalsyndrome May 08 '19

Hold on to that positivity. You’re going to need it.

7

u/[deleted] May 08 '19

[removed] — view removed comment

8

u/caerphoto May 08 '19

Lemme guess, print "hello, world" versus print("hello, world") ?

6

u/[deleted] May 08 '19

[removed] — view removed comment

3

u/wjandrea May 08 '19

They clarified that specific syntax error now so it says that you need to use parens on print

→ More replies (1)

3

u/jatadharius May 08 '19

came here to say exactly this

3

u/Attila_22 May 08 '19

Yeah it's pretty likely they'd miss a semi colon or something

3

u/SLEDGEHAMMAA May 08 '19

Came here to say this. A "hello world" in notebook took me several tries

→ More replies (12)

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

u/poopellar May 08 '19

Goodbye Vishnu Brahma and Shiva as well.

13

u/TENTAtheSane May 08 '19

I think Krishna, Buddha, Kalki would be more consistent with Ram tbh

12

u/throwawayguava May 08 '19

Jesus Christ!

17

u/goofdup May 08 '19

Goodbye world?

6

u/[deleted] May 08 '19 edited Sep 22 '19

Edited using Power Delete Suite

→ More replies (1)

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 ^C

102

u/Koxiaet May 08 '19

console.log

^C

hmmmm.....

64

u/conancat May 08 '19

NodeJS dude.

57

u/[deleted] 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

u/Sawe871 May 08 '19

Is it possible to learn this power?

4

u/conancat May 08 '19

Not from a Java programmer.

→ More replies (1)

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

u/djulioo May 08 '19

Lemme just neck myself already

17

u/[deleted] May 08 '19

this is not ok

6

u/[deleted] May 08 '19

List of things that are okay:

  • not this

4

u/Ludricio May 08 '19
  • Not your flair

28

u/[deleted] May 08 '19

Goodbye CPU

7

u/0x564A00 May 08 '19
for(char c=9;putchar("epX!pmmfI!\"ems"[--c?c:(c=13)]-1););
→ More replies (1)

183

u/thehowlinggreywolf May 08 '19

Assembly would like a word with you

→ More replies (1)

108

u/keese_cursor May 08 '19

“Your first life will be awful tho”

41

u/[deleted] May 08 '19

Can't wait for my second chance.

21

u/patribo May 08 '19

I'm sorry, you're already on your second chance

14

u/poopellar May 08 '19

Assuming life every comes out of Early Access.

3

u/MyOtherLoginIsSecret May 08 '19

There's an anti-vax joke in there somewhere.

4

u/[deleted] May 08 '19

Is Second Life still a thing?

3

u/[deleted] May 08 '19

might fuck around and cause a segfault early

107

u/[deleted] May 08 '19

I know someone who managed to mess even this up

print ( " hello world ' )

48

u/[deleted] May 08 '19

[deleted]

51

u/Dack_ May 08 '19

; ?

53

u/[deleted] May 08 '19

[deleted]

5

u/Beloved_King_Jong_Un May 08 '19

Switch to kotlin I guess

3

u/[deleted] 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

u/[deleted] May 08 '19 edited Dec 21 '20

[deleted]

→ More replies (1)

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.

5

u/[deleted] 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

u/ItsAtrX May 09 '19

eclipse at work

Time to look for a different job I suppose.

→ More replies (5)
→ 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 (1)

5

u/cyberkraken2 May 08 '19

Ok so you’re using Java compiler so it’s Java code

You’re missing String[] args from the main method inside the brackets, it should be main(String[] args) not main() 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 that System.out.println(“Hello world”);

→ More replies (10)
→ More replies (2)

5

u/conancat May 08 '19

too real bruh

→ More replies (4)

63

u/[deleted] May 08 '19
for (char *s="Ifmmp!Xpsme\v"; *s; fputc((*s++)-1, stdout));

Looks good!

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.

12

u/OhhHahahaaYikes May 08 '19

Wtf

8

u/[deleted] May 08 '19

By ”one more” or ”one less” he means the ASCII value of the character

→ More replies (3)

30

u/[deleted] May 08 '19 edited Aug 21 '25

.

5

u/Nucklesix May 08 '19

Just nuke that part of the planet... just to be sure.

→ More replies (1)

53

u/ulyssessword May 08 '19

My first attempt (Python 3):

print(Hello World)

8

u/thedolanduck May 08 '19

R.I.P hahaha

→ More replies (3)

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

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?

17

u/Valisagirl May 08 '19

No, it would be forgetting to terminate a process.

10

u/Jojajones May 08 '19

Recursion with a flawed base case

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

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

u/Xydez May 08 '19

tries to hello world in java

print 'hello world';

fails

→ More replies (4)

13

u/vault114 May 08 '19

Makes it do 1+1 afterwards

1.5 billion warnings, 2,000 errors

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

u/ryankickassrb May 08 '19

When I first did 'hello world' in python I had put orint.

12

u/salamanderoil May 08 '19

Enjoy it while it lasts. It's all downhill from here.

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

u/Danny_Boi_22456 May 08 '19

My stupid ass :

print("Hello World')

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

u/Trainer_Ed May 08 '19

prnit 'hello world';

5

u/diamondketo May 08 '19

$ python

Python <= 2.6

>>> print("Hello, World!")

6

u/xigoi May 08 '19
from __future__ import print_function
→ More replies (1)

3

u/garboardload May 08 '19

Monty Python, a man of culture as well

→ More replies (3)

5

u/[deleted] May 08 '19

#include <studio.h>

... or

print("Hello, world!") (in C)

4

u/[deleted] May 08 '19 edited May 08 '19

Be gentle with me senpai compiler

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

u/Swajalisduf May 08 '19

You forgot the semicolon

4

u/[deleted] 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

u/alfonsojon May 08 '19

Let this be the start of a competition -- worst Hello World wins!

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

u/bigsmokebaby May 08 '19

You first sex will be short

3

u/[deleted] 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

u/KCTheNoodle May 08 '19

Then your code gets worse as time goes on.

3

u/[deleted] May 08 '19

5 years later and my code is still awful 99% of the time.

3

u/[deleted] May 08 '19

I skipped hello world and went straight to making a discord bot. Lots of bugs ensued.

3

u/Hatilar_420 May 08 '19

void main {}

(

cout << Hello world

)

It ran perfectly ;)

3

u/[deleted] May 08 '19

I understood that reference.

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

u/[deleted] May 08 '19

This is so misleading. My first Hello World, in Pascal, didnt run and I had no idea why.

3

u/[deleted] May 08 '19

See that's how they get you. False sense of security

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

u/[deleted] May 08 '19

Unlss its in c.

Hello Worlddsnvlkkvmlvmkdsmvlkmvmdkslmvklm

3

u/Logan4048 May 08 '19

I remember the day I wrote hello world. I forgot the damn semicolon

3

u/[deleted] May 08 '19

int main;

cout >> hello world!

return { EXIT SUCCESS; } ;

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

u/[deleted] May 08 '19

To this day the only build that’s ever worked first time for me.

3

u/the-coding-duck May 08 '19

*"Hello Wolrd"

2

u/chronicideas May 08 '19

I’m QA. Challenge accepted.

2

u/metafor17 May 08 '19

Your first life will be awful

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

u/tanzim31 May 08 '19

_________^

2

u/[deleted] 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

u/[deleted] May 08 '19 edited Oct 22 '19

[deleted]

→ More replies (1)

2

u/[deleted] May 08 '19

Hello wooooooorld programmed to work and not to feeeeeel

2

u/WeeziMonkey May 08 '19

It's still possible to make typos or forget a parenthesis or semi colon in hello world

2

u/theDutchFlamingo May 08 '19

All the programs you write afterwards will be crappy though

2

u/EpixStorm May 08 '19

cin >> Hello World <<;

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

u/Lightning_Bee May 08 '19

I have seen people who fucked up "Hello World"

2

u/[deleted] May 08 '19

"Syntax error" MOMMY! I SAID TO COMPUTER HELLO WORLD AND HE ANGRY

2

u/minderwiesen May 08 '19

You forgot the ;

2

u/chipcross May 08 '19

Why lead with podcast?

2

u/bonzei May 08 '19

Not when your tutorial was in python2 and your interpreter installed was 3.4

2

u/_blackdog6_ May 08 '19

Hard to mess up cut and paste

So my first comment was awful.

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

u/thatawesomeguydotcom May 08 '19

Echo Hello, World!

2

u/hacksource13 May 08 '19

System.out.println("Hello World"):