Proposing a guy or a girl with a red rose on this valentine is too mainstream for us programmers, isn’t it? Why not try something different on this valentine? I have tried to explain some techniques to Propose Like A Programmer which can make your partner/ crush feel impressed as well as proud of your profession.
-
I Love You Batch file
How about you surprise your Valentine by sending him/her a Valentine proposal and shut the computer down automatically after leaving a message? He/She would probably go nuts and you never know, you might get a call as well if you Propose Like A Programmer.
- Create a new text file.
- Copy the following code into newly created file
@echo off msg * I LOVE YOU shutdown -c "Error! You are too CUTE!" -s
3. Change the extension of the file to ‘.bat’ from ‘.txt’
4. Tell your Valentine to open this file.
-
C++ I Love You Program
If you want to Propose Like a CPP Programmer, run this C++ Love Proposal code & see their reaction.
#include<iostream> #include<cmath> using namespace std; int main() { double x, y, size=10; char ch=3; string message(" I Love You "); int print_line = 4; if(message.length() % 2 != 0) message += " "; for(x=0;x<size;x++) { for(y=0;y<=4*size;y++) { double dist1 = sqrt( pow(x-size,2) + pow(y-size,2) ); double dist2 = sqrt( pow(x-size,2) + pow(y-3*size,2) ); if (dist1 < size + 5 || dist2 < size + 0.5 ) { cout<< ch; } else cout<< " "; } cout<<"\n"; } for(x=1;x<2*size;x++) { for(y=0;y<x;y++) cout << " "; for (y=0;y<4*size + 1 - 2*x; y++) { if (x>= print_line - 1 && x <= print_line + 1) { int idx = y - (4*size - 2*x - message.length()) / 2; if(idx < message.length() && idx >= 0) { if (x == print_line) cout<<message[idx]; else cout << " "; } else cout << ch; } else cout<< ch; } cout<<endl; } return 0; }
https://www.quora.com/How-should-I-propose-to-a-programmer/answer/Neeraj-Mishra-67
-
Proposal In Binary
In case, you are too shy to confess your feelings, just challenge your partner to decode this binary. Once they decode the binary, then surprise. This is ‘How You Should Propose a Programmer‘
01101001 00100000 01101100 01101111 01110110 01100101 00100000 0111100101101111 01110101
I never wondered that binaries would be such a great help for me, did you? You can verify the answer on Binary To ASCII Converter.
4. Inspect Element
Inspect element is a way which can be used for changing the contents of the website temporarily. For doing so just right-click on any website you wish to make temporary changes. Click the bottom-most inspect icon and you will get the whole source code of HTML and CSS. Make the necessary changes. You can change the headings, the messages etc. to your pickup lines to Propose Like A Programmer.
5. Programmer Love Letter
While making a card for my valentine, I thought why not to brag a little in front of him? So I just started writing a letter which eventually got elegantly quoted with technical words from programming, and you know, I got to brag a bit in front of a civil engineer 😛
The letter goes as follows:
Dear Valentine, Even though you know how much awesome I am, I would still like to impress you again and would like to tell you, how much you mean to me. I always thought that “love” was a static class until you made an instance of it. You were the reason for which I started to believe that everything happens for a reason.No regular expression ever can match the value of you.appendTo(my_life). My love for you is like a session that never timeouts. Without you, my world is none. You are that field of my class that will remain always protected. In the end, All that I want to say is that there is no need to implement the finalizer for our love, it will never go out of scope.
6. Brainfucking code:
Does your valentine like to solve puzzles? The code given below is a brainfucking code that gives the best suitable output for the valentines day.
#include <iostream> #define _____ std::cout #define __________ int main() { char #define ______ return __________ _, __, ___, ____; /* __________ */ _ = __ = ___ = ____ = '_'; /* ___ */ _ = _/_; _++; /* _ _ __ ___ _____ _ */___ = __ = __/_; ___ /= _; __+=___; _++; __+=_; _____ << __; ____ /= _; ____++; /* _____ ____ */ ___ *= _; __ = __+_; /* _______ */ _____ << ____ << __; __ += _; _____ << __; __ += _; __ += ++_; _____ << __ << ___ << ____; /*__*/ __ += --_;
OUTPUT : I LOVE YOU
https://code.sololearn.com/c6ZfuN0IerXe/?ref=app#cpp
7. Programmer Pickup Lines
Just for the matter of fact you are too lazy to code or you’re not a big fan of coding like me ;D , you can always send text messages to your Valentine. There are numerous ways by which you can come up with “Rotech” (romantic and technical) stuff to impress your valentine.
Here, in this case, I’ve used java as a base to make “Rotech” sentences. You can also go with python or R language if you are not really a java fan 😛
“You are a field in my class. You will always be protected.” “Are you an exception? Let me catch you.” “You are my increment operator. You make my value increase.” “I think you’re my compiler. My life wouldn’t start without you.”
“You are my initializer: without you, my life would point to nothing (null).”
“I am a BufferedReader. You input meaning into my life.”
“You are my semicolon; always present in everything I do.”
“You are the JDK (Java Development Kit) in my life. I won’t compile without you.” “If I were a method, you must be my parameter, because I will always need you.” “Can you be my private variable? I want to be the only one with access to you.”
Such a cute ideas 🙂
Binary to text converter, you can convert binary numbers into text with this online tool. People known as binary numbers are computer languages.
I really love the way you presented the topic. The heading of your topic is exciting and eye-catching.