I use C++ all the time!!
-
During a recent interview I was asked if I use C++. I said, "Sure, I use C++ all the time!!" They asked me to to write some example code with C++. So I did. Here's what I wrote:
for (int C = 0; C < myListString.Count; C++)
{
if (myListString[C] == myCompareValue) { this.MyDoSomething(myListString[C]); }
}A week later I received the standard decline letter from them. :( + :confused: That's struck me as odd, because I'm confident I wrote some really good example code with C++. ;P (Made this up myself. OK, Now it's your turn ... reply with your [clean] parody [or parity..?!] code joke!)
-
Maybe it wasn't the code, sometimes it just don't click! (You or them or both)
VS2010/Atmel Studio 6.1 ToDo Manager Extension Some days, it's just not worth chewing through the restraints.
You do realize I posted a joke, yes?!
The best way to improve Windows is run it on a Mac. The best way to bring a Mac to its knees is to run Windows on it. ~ my brother Jeff
-
You did not get the job because you wrote C# code! C# code
this.MyDoSomething(myListString[C]);
C++ code should access this ptr like this-> instead of this.!
this->MyDoSomething(myListString[C]);
You do realize I posted a joke, yes?! Look closely at the code and you will see that "C++" is used ...
The best way to improve Windows is run it on a Mac. The best way to bring a Mac to its knees is to run Windows on it. ~ my brother Jeff
-
You do realize I posted a joke, yes?!
The best way to improve Windows is run it on a Mac. The best way to bring a Mac to its knees is to run Windows on it. ~ my brother Jeff
-
A few notes: - The code that typically shows up in this context usually has a break following the MyDoSomething() call - The context is vague but did they ask for some specific functionality? This is only a portion of a method. -> It won't compile as is -> Variables not declared -> It isn't really complicated (but did they ask for that?) -> The code looks more like C than C++ - I also typically use prefix increment (++C instead of C++) in the for loop. - myListString.Count is calculated every time through the loop ... (is this a property or data member?) can this be cached? - I'm not partial to your variable name, formatting or indentation ... but that is just me. My criticisms are pretty minor and I wouldn't reject you for this content. Maybe another candidate impressed them just a little more than you. I wouldn't get upset about the rejection. The rule of thumb I have for interviews is that you need to do about 10 applications for 5 interviews that might lead to 2 offers.
-- Harvey
You do realize I posted a joke, yes?! Look closely at the code and you will see that "C++" is used ...
The best way to improve Windows is run it on a Mac. The best way to bring a Mac to its knees is to run Windows on it. ~ my brother Jeff
-
I think we should give him the job: he used "C++" in one of the lines:
for (int C = 0; C < myListString.Count; C++)
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
*Finally*! Someone got the joke!
The best way to improve Windows is run it on a Mac. The best way to bring a Mac to its knees is to run Windows on it. ~ my brother Jeff
-
You do realize I posted a joke, yes?!
The best way to improve Windows is run it on a Mac. The best way to bring a Mac to its knees is to run Windows on it. ~ my brother Jeff
Sorry my bad, long hours and little sleep have taken there toll....never mind! :)
VS2010/Atmel Studio 6.1 ToDo Manager Extension Some days, it's just not worth chewing through the restraints.
-
You do realize I posted a joke, yes?!
The best way to improve Windows is run it on a Mac. The best way to bring a Mac to its knees is to run Windows on it. ~ my brother Jeff
-
You do realize I posted a joke, yes?! Look closely at the code and you will see that "C++" is used ...
The best way to improve Windows is run it on a Mac. The best way to bring a Mac to its knees is to run Windows on it. ~ my brother Jeff
-
During a recent interview I was asked if I use C++. I said, "Sure, I use C++ all the time!!" They asked me to to write some example code with C++. So I did. Here's what I wrote:
for (int C = 0; C < myListString.Count; C++)
{
if (myListString[C] == myCompareValue) { this.MyDoSomething(myListString[C]); }
}A week later I received the standard decline letter from them. :( + :confused: That's struck me as odd, because I'm confident I wrote some really good example code with C++. ;P (Made this up myself. OK, Now it's your turn ... reply with your [clean] parody [or parity..?!] code joke!)
-
BCantor wrote:
You do realize I posted a joke, yes?!
Actually no - I've seen far worse code produced by serious developers. In fact, I would go so far as to say that your code is better than your humor.
-- Harvey
Well, here's a few to try: When you go to pay for something, ask the cashier if you can receive half-off twice as much the price (I only do this when things seems slow at the checkout; cuz it takes a moment or two to do...) The cashier will say they are not allowed to do that kind of "special" (even though you didn't say "special") or that they don't know how to ring that price up if they could. Maintain a sincere yet puzzled composure (I kind of keep that happy but perplexed look on my face) as to why you won't receive half-off twice as much. Then ask them if they even know what half-off twice as much is (all the while smiling, sort of like yer letting them know yer having fun chatting with 'em.) They'll usually figure it out by then and chuckle along with ya. ===== Or, ask if they take plastic. When they say yes, hand 'em your Library Card saying, "Great! Here's my Library Card!!" (while having an excited/happy yet fully showing you are kidding them kind of face.) Again, I only do this when it's slow or a Monday and do it in a way as to "lift" them up in sharing of some fun, per se.
Life is Precious. CarryTheTruth
-
During a recent interview I was asked if I use C++. I said, "Sure, I use C++ all the time!!" They asked me to to write some example code with C++. So I did. Here's what I wrote:
for (int C = 0; C < myListString.Count; C++)
{
if (myListString[C] == myCompareValue) { this.MyDoSomething(myListString[C]); }
}A week later I received the standard decline letter from them. :( + :confused: That's struck me as odd, because I'm confident I wrote some really good example code with C++. ;P (Made this up myself. OK, Now it's your turn ... reply with your [clean] parody [or parity..?!] code joke!)
That's not really a joke, it's more of a pun. Very subtle. The syntax (as someone else pointed out) is not even C++, more C#
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein -
That's not really a joke, it's more of a pun. Very subtle. The syntax (as someone else pointed out) is not even C++, more C#
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert EinsteinOf course it is NOT C++, it is C#. But "C++" is used in the code. A pun is a single sentence statement, wherein a joke is 1 or more sentences culminating in a punch line. My joke does end with a punch line, albeit quasi-subtle. :~ Man, I guess humor is a NO-NO around here or something. :sigh:
-
Of course it is NOT C++, it is C#. But "C++" is used in the code. A pun is a single sentence statement, wherein a joke is 1 or more sentences culminating in a punch line. My joke does end with a punch line, albeit quasi-subtle. :~ Man, I guess humor is a NO-NO around here or something. :sigh:
Bad or childish humor is not always welcomed, good humor is always welcome.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein -
Bad or childish humor is not always welcomed, good humor is always welcome.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert EinsteinYour reply begs the question, for such is implied within the reply in the mind of this reader, that question being: Are you implying that the joke posted was bad or childish? If yes, do elaborate; realizing full-well your qualifier of such is wholly subjective.
-
Your reply begs the question, for such is implied within the reply in the mind of this reader, that question being: Are you implying that the joke posted was bad or childish? If yes, do elaborate; realizing full-well your qualifier of such is wholly subjective.
I imply nothing, but you may infer whatever you like.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein