r/code • u/bbtta85 • Jul 29 '16
Help Please Please help! Need code to announce our pregnancy to my programmer boyfriend... <3
Hi all, my boyfriend is a Senior Software Engineer... I just found out that we are expecting, and I'd love to break the news to him with a block of code! Trouble is, I don't code... Would you all help me write a small block of code to let him know he's going to be a daddy? TIA!
1.3k
Upvotes
View all comments
3.3k
u/gonzopancho Jul 30 '16
Interpretation (since you asked /u/super_hewcy)
'fork()' is a system call on linux/unix that spawns a new process. yes, I'm being a wee bit 'dirty' here.
setTImer(9 * 30 * 24 * 60 * 60); <--- basically set a timer for 9 months.
wait4(t); <--- while 'wait4()' is a system call, I'm not using it correctly here, still the implication is "wait for 9 months' (wait for the time to expire)
p.cry("Hello, world\n");
"Hello, world" is the simplest program in many languages. Typically the first program you are shown how to write in a given programming language.
So this is the baby crying (just after birth), "Hello, world"
He'll get it.
(my son is 18 now. enjoy every moment, because one day, you'll realize you have an adult on your hands.)