- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
this comment was typed wit a minor mistake
Admin
wat mistake? i dont do mistakes!
Admin
std::cout << "I don't think will work with that crazy "std::", but I'll try to post my comments anyway!" << endl;
Admin
I just start my comments from scratch all over again !
Admin
Hey, wait, consider me! I am a team player with some independently abilities, too!
Admin
Admin
If "Exclusive research skills with details" means she can find stuff nobody else can find, she needs to apply to the CIA or FBI.
Admin
Dear Mr[s]. Employer-Person,
I am good werkr. I try hard, and sometimes succeed very muchly. If yu gv me a chanc, I will send u teh codez.
Thank you very much, Your soon-to-be humble slave...
Admin
Highly-experienced C++ programmers might have little to no familiarity with the standard library functions. This is especially true for people who have been programming C++ for a very long time and maintain codebases that still have to run on machines whose standard library support is somewhat lacking.
One of the projects I manage has a codebase of about 730,000 lines of C++ code. It does not use the standard library at all. At the time it was initially developed, some of the platforms it had to run on did not have standard libraries that worked properly with threading, so it has its own set of libraries. We have programmers we've hired out of high school who have worked for a decade on only this code.
Of course, if you use the standard library heavily, you may have some issues with them building familiarity with it. But a good programmer can learn a new library in a few days at most.
It's a huge mistake to judge programmers based on whether they have skills a good programmer could pick up in a week or less. You want good programmers.
Admin
Two excellent examples of WTFs on the part of those conducting the interviews. Asking people to criticize their own work is just stupid. It's your job to find out what's wrong with them; don't ask them to volunteer that information. And asking people to find flaws in some artificial "Where's Waldo" bad code is equally stupid. Give them a realistic problem and ask them to solve it, already.
Admin
I'm not saying that the C++ test is a WTF, this is just a comment about it...
While the candidate that didn't know what "std" means was surely a WTF, I'm not sure I would have automatically circled std::string as an error.
Truth be told, I always pass strings as const std::string& for efficiency but std::string wouldn't really jump out to me as an "error". I'd probably comment on it though.
Hopefully your test also looks for people who use ++myVariable vs myVariable++ (where appropriate).
Admin
I work [my] wit!
Admin
That resume is one of those "how many errors can you find?" puzzles, right? Using my independently abilities, I exclusively researched at least five errors in that one section.
Admin
OK, the <wit> typo is clearly a joke (I have the same sense of humour), but how do you explain the <independently abilities>?
15 typos mysteriously occuring simultaneously after the <independent> part? Insanity? I think we should be told.
Admin
Admin
What's the point of asking a trick question? Is it so you can see how people deal with trick requirements? Or trick designs?
Admin
So my question for the interviewers is, in situations like these, why do you have to keep stringing along the candidate, say "we'll call you if you get the position", etc., even though in their minds they've already cemented their decision as a 100% no?
With candidates like these you should be able to just say "Well, um, that's not really what we're looking for, so thank you for your time". Get it over with quickly, let the interview candidate know that he's done here, everyone moves on.
Admin
Admin
Admin
A clerical position was offered, and I've not been informed? Heresy!
Admin
No so people know how to find bugs in code. For example
x=3 if (x=5) cout<<"5"; else cout<<"not 5";
What is the output?
Admin
Admin
Trick questions are the most beautiful part of any test. If someone answered it correctly, then that means one of two thinks – he saw this question before (he had many interviews and possibly for good reason – also bad candidate) or he’s a genius – also he’ll never do what he should, instead he’ll search for “very interesting” ways to do the task (no matter how much time it takes)
Admin
What if they did C++ on a *nix platform? Not the whole world is MS centric you know.
Admin
Because some people don't move on. There is a small percentage of people that, if you take this approach, will completely freak out on you. To try to avoid this situation, you make it more polite. Sure, I guess it's stringing them along, but good candidates understand this answer (and should have more than one interview), and the candidates in question don't have their feelings hurt. It's a win-win.
Admin
Especially if the job they're interviewing for uses it extensively and needs someone who is an expert at it. I think that's what the "immensely high standards" build-up was supposed to communicate to us - this person might have been a fine developer, or potentially one, but to not know what the standard library is, or to expose ones unfamiliarity in such a bonehead way, is pretty much doom in an interview like this.
But yeah if the goal of the story was something like "this is supposed to be a great C# programmer but they don't even know what company makes Windows" then it fell flat as a WTF
Admin
I really hope that was sarcasm
Admin
Fails to compile, since there's no ";" after x=3 and the else has no if (the if statement ended on the ";" in 'cout<<"5";'). Watch those semicolons!
Admin
[quote user="Russ"][quote user="Ytram"]No so people know how to find bugs in code. For example
x=3 if (x=5) cout<<"5"; else cout<<"not 5";
What is the output?[/quote]
It is:
error: expected constructor, destructor, or type conversion before ‘=’ token error: expected unqualified-id before ‘else’
But I expect you would like to hear "5".
Admin
That's not really a trick question....
Admin
A compiler error? No semicolon...
Admin
Admin
Clearly the woman applying for the clerical position is very detail orented.
Admin
Actually my bad.. haven't had my morning coffee yet.
The answer should be 5. It is a bit of a trick question, as some junior developers might not know the difference between
if (x==5)
and
if (x=5)
Admin
Admin
Whist is a complicated game, man.
Admin
And yeah, I hate those sorts of questions too (I mostly always get them right, then use it as an excuse to terminate the interview, as in: interviewer doesn't know how to interview: FAIL!)
Admin
Umm what?
Assuming x is defined and adding the semicolon to the end of x=3, the answer is 5 (obviously). It's not really a trick question because anybody who writes C code should be able to find that and if not... well they need to be sent packing.
Admin
To David Schwartz: although you may have a point about most libraries, a week is definitely not long enough to pick up the STL. Even to understand the goddamn error messages would take this long. Plus, as Brazzy says, if you haven't read a single relevanat book on C++ in the last ten years, you are probably toast as a potential employee.
Admin
My initial thought would be that if they WERE good programmers they are keeping themselves reasonably up to date. Studying new practices, languages, and additional functionality. If a "good" programmer doesn't know about the std library in C++, then I would say they aren't that "good"
Admin
I'll tell you why - I once interviewed a candidate who was simply awful, could not answer a single tech question. He even apologized for doing so poorly at the end of the interview. But, I was not the hiring manager and so could not officially tell him yes or no. The real WTF was that in spite of my feedback they hired him anyway.
Admin
I dont buy the std:: thing as a reason to terminate the interview. c++ is an ancient language, and many very very competent developers have been working with it since way before the standard template library - or, during the horrible time when most stl implementations were both notoriously unstable and ... not very standard.
Admin
Why should it be sarcasm? It's the correct answer. It's your question, right?
Admin
I bet he was
anyhow, but had a different cout defined in another namespace and had to remove the ambiguity...Admin
Admin
I'd be willing to believe that the "wit" misspelling is just that - wit. A joke.
I'd like to come up with some trick questions to ask a company in an interview some time.
Admin
I'd reply but I don't know what the Add Comment button does. Oh, wait...
Admin
How junior? Pre-school?
Admin
I don't think that passing a std::string as a non-const value parameter is necessarily an error; it is less efficient than passing a const reference if the strings are long (unless string copies are performed lazily, in which case the difference in performance would be negligible in typical scenarios). On the other hand, if the called function needs to modify the value for its own internal purposes (e.g. it wants to produce an uppercased version for searching some table), it is probably more efficient to modify a non-const value argument directly than to copy-construct a new local std::string variable from a const reference argument and then modify that.
(Just to be clear, a non-const, pass-by-value parameter is a copy of the passed parameter so any modifications will not be seen by the calling function. There are many situations where this might be useful behaviour, such as the conversion to uppercase mentioned above.)
So if that was "the most obvious error" in the buggy code, I'm concerned.
JRH
Admin