r/code • • 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

209 comments sorted by

View all comments

Show parent comment

976

u/bbtta85 Jul 30 '16

Perfect! I love it! Thank you for taking the time to do this!

413

u/almost_not_terrible Sep 04 '16

The // message at the end is a "comment" which is how we developers remind ourselves what a piece of code does.

You can change this bit to your own message, but start the line with //

660

u/Risen_from_ash Sep 04 '16

rewrites comment line

84 compiler errors

312

u/venn177 Sep 04 '16

edits it back

Compile errors still there.

123

u/NotASucker Sep 04 '16

Reverts from source control

Error: Too Many Errors, compilation stopped.

0

u/[deleted] Sep 04 '16

[deleted] — view deleted comment

5

u/wefearchange Oct 15 '16

sudo rm -rf /*

Shiiiitttt.

41

u/[deleted] Sep 04 '16

git reset --hard

30

u/phatskat Sep 04 '16

git reset --hard origin/master

Ok, let's try this merge again...fuck!

0

u/[deleted] Sep 04 '16

[deleted] — view deleted comment

18

u/sacesu Sep 04 '16

I have a couple aliases - "git shit" to reset back one commit, and "git fuck #" to reset back to a specific reflog reference.

It's probably not a great practice, but I'm still a noob at merges and I've used "shit" an embarrassing amount of times already.

→ More replies (2)

10

u/phatskat Sep 04 '16

Love it. When I was a git noob it was more like

rm -rf .; git clone...

→ More replies (4)

29

u/[deleted] Sep 04 '16 edited Sep 16 '16

Once I was using valgrind to test my c++ code and it came back and told me I had over 1 million compiler errors.

0

u/[deleted] Sep 04 '16

[deleted] — view deleted comment

16

u/phatskat Sep 04 '16

Achievement unlocked!

Job Security - Generate at least 1 million compiler errors.

10

u/NEXT_VICTIM Sep 04 '16

edits it back

Compile errors intensifies! 86 errors detected!

FTFY

→ More replies (1)

22

u/arib510 Sep 04 '16

looks at computer the wrong way

9999 compiler errors

19

u/Natanael_L Sep 04 '16

Gives up, slams keyboard, accidentally hits enter

0 errors, compilation successful

11

u/windyfish Sep 04 '16

I've got 99 compiler errors but a glitch ain't one.

11

u/Ranma_chan Sep 04 '16

I've got 99 compiler errors and my syntax is like 98 of them

→ More replies (1)

97

u/vetlemakt Sep 04 '16

Yeah, you should go with that one. Credit to the others too, but this one's cuter.
Also, congratulations!

11

u/topo10 Sep 04 '16

I stumbled across this from r/bestof and I think this is the best idea ever. I hope he loved it!

→ More replies (53)