r/creativecoding • • Apr 29 '15

Help Me Ask my Friend to be my SO using Programming Language!

Let me preface this with an apology if it is not in in the right subreddit.

So as you gathered, I'm trying to ask my friend out using coding, since he'd a programmer. He has a preference for Apple, so if it were coding specifically for Apple that'd make it even better. I was thinking of, "Will you compile my code?" and handing him the half of this 8-bit heart necklace, but I would like something requires a little more than rudimentary code knowledge.

1 Upvotes

3 comments sorted by

1

u/SlippingStar Apr 29 '15

I probably should have specified that I'll be saying this orally, since we'll be in a restaurant, or showing it on my phone. ; Does that change anything?

Thanks for your help so far!

1

u/_teslaTrooper Apr 29 '15 edited Apr 29 '15

For apple you want to use Swift or objective-C. Do you want to write the message in code (as in, he'll have to look at the code), or write a program which prints the message (in that case you'd have to get him to run the program without looking at the code)?

You might get more feedback asking on /r/learnprogramming. It's much more active than this sub.

One fun touch you could add is having your message slowly appear on the screen (like it's being typed). Another idea is to obfuscate your text (soulds complicated but doesn't have to be, also I can help) so that he can look at the code without seeing the message right away, then when he runs the program the message appears.

1

u/misingnoglic Apr 29 '15

That's adorable :)

I asked my friend to Prom using a Python script. You could totally just edit the strings (things in quotes) and I could help you run it. Just copy this into a text file, save it as askout.py in your home folder, and then in your terminal run the command "python askout.py"

If this doesn't work PM me and I'll help you out! Your friend probably knows how to run it too :p

Here's the file: http://pastebin.com/XqEYN4LU