4 ms·
I opened this up because I saw the title and thought, "hmm that's strange, isn't string just an alias for String"? I'm pretty sure every C# dev I know would say
by martindevans 12y ago
I opened this up because I saw the title and thought, "hmm that's strange, isn't string just an alias for String"? I'm pretty sure every C# dev I know would say the same. Then again if I was asked a trick question like this in an interview I might scratch around for some/any difference I could think of!
- mattmanser 12y agoHe has only asked 8 people. It's one of those things that after a few years you look at and wonder why there's string and String, int and Int32, you google it, you find out it's simply an alias. So he's probably only interviewed juniors.
- dtech 12y agoI have been working in C# for 2 weeks, and Googled this last week. I think it's kinda the difference between being interested in making things work, and understanding how the language works.
- UnoriginalGuy 12y agoIt is also that moment of self doubt. You assume there "must" be a difference since the interviewer implied there is, so in order to contradict the interviewer (or call them "wrong") you have to be 100% sure. I'm sure many people would prefer to get the wrong answer in interview than imply the interviewer's premise is wrong. That's why trick questions are dumb in interviews, they ignore the power dynamics in play and how someone will be judged if they seemingly "fight the interview process" (by calling the question(s) flawed). In normal conversation I'd likely call it an alias (without 100% certainty) but in an interview I'd prefer to be wrong than to imply the interviewer's question is flawed. TL;DR: All the blogger proves is that they're a bad interviewer, not that they're interviewing bad programmers.
- steveklabnik 12y ago> It's not like all interviewees have been fresh out of uni, in fact only one has been.