top | item 37103595

(no title)

somestag | 2 years ago

Presumably something like "a string is a sequence of characters" would be a good first answer, though it might prompt some follow-up questions.

I love how questions like this suddenly become more complicated when you have a deeper understanding of the internals. Your first instinct of an answer might not be 100% correct. If I were asked this question unexpectedly, I'd probably trip over myself a few times as I thought through it out loud.

discuss

order

ethbr0|2 years ago

My high water mark was the basics... and then the candidate drawing an analogy between char as primitive and char-array-based-strings as object oriented classes that offered additional functionality on top of chars.

janstice|2 years ago

That sounds like someone who will make a four-page fizzbuzz solution, which was at one stage a highlight for us.

What I try to get candidates to do in interviews is find the project they are most proud of, and get them to talk about it at a technical level - the constraints, challenges & solutions. That’s much harder to fake than pretty much anything else, and works at any technical level. My theory is that if they can communicate technical things in enough detail, and show that they have sufficient depth in at least one area they should be able to move sideways into our stack and context.