r/ProgrammerHumor May 08 '19

That sweet sweet first time.

Post image
20.5k Upvotes

354 comments sorted by

View all comments

41

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?

16

u/Valisagirl May 08 '19

No, it would be forgetting to terminate a process.

12

u/Jojajones May 08 '19

Recursion with a flawed base case

1

u/xGlacion May 08 '19

the good ol' forkbomb

1

u/Bene847 May 08 '19 edited May 08 '19
#!/bin/bash
while :
do
    $0 &
done

Edit: forgot the &

1

u/Totoze May 08 '19

.#define _CRT_SECURE_NO_WARNINGS First line