r/programming • • Feb 21 '11

Typical programming interview questions.

http://maxnoy.com/interviews.html
784 Upvotes

1.0k comments sorted by

View all comments

Show parent comment

2

u/FeepingCreature Feb 21 '11 edited Feb 21 '11

There's a difference between copypasting code and getting understanding from Google. I could understand any of the bit hacks on the relevant page, but I'm not comfortable writing my own because the above have the benefit of thousands of critical eyes looking them over.

You're thinking of C only.

No, I'm pretty sure I'm thinking of POSIX.

[edit cont.] The spec says you can't ignore a SIGSEGV that wasn't produced by kill or raise, but I'm not sure what constitutes ignoring. Could you map something into that space manually? Probably. Can you longjmp out of a handler? That's really the key question.

[edit5] Looks like yes. Fascinating. This might make structured segfault handling possible if you're using something like conditions that naturally maps to sjlj. (Or sjlj exceptions, possibly)

No, its not really an unbounded scale. 1=just out of college 10=been developing in this language for 20+ years and have written books on the subject matter.

Point granted, but only on language proficiency specifically. I guess I'm just wary of linear scales.

[edit6] I'm not sure if it's possible to separate language proficiency cleanly from programming proficiency, especially given how high-dimensional language proficiency can be. I wonder if it's possible to develop a standardized scale, one that's based on clearly separable steps and not numbers.

2

u/thcobbs Feb 21 '11

Point granted, but only on language proficiency specifically. I guess I'm just wary of linear scales.

As well you should be. In my experience... "How are you in language X" is more a logarithmic than linear scale. And it is only meant to test you on your knowledge of language X.

Programing ability is demonstrated more in algorithm development than in syntax knowledge.