News for hackers. Stuff that matters.
Re:Today's Coding Interview Game by jonafato on Thursday December 02, 2010 @11:48PM (#1964794)
I'll agree with this on one condition: don't hold syntax errors against me. I interviewed for a position about eight months ago. I was rusty with my C (had been doing more java and python around that time), and put "int i = 0" in a for loop on a white board and seemingly had it counted against me. This kind of thing, along with things like missed semicolons, should be ignored by interviewers. Not only is it a simple fix, it also says nothing about the logic in the code.
Re:Today's Coding Interview Game by nostrademons on Thursday December 02, 2010 @11:55PM (#1964806)
That's even legal syntax in C99.
Re:Today's Coding Interview Game by matwood on Friday December 03, 2010 @12:43AM (#1964908)
Unless I've needed a specific language, like SQL for example, anytime I've asked a candidate to code on the whiteboard pseudocode has always been fine.
Re:Today's Coding Interview Game by aplusbi on Friday December 03, 2010 @12:10AM (#1964844)
What makes you think it was held against you? Most programmers can be kind of OCD about code and would want to point out that kind of error, whether they thought it was relevant to your abilities or not.
Re:Today's Coding Interview Game by thornkin on Friday December 03, 2010 @02:35AM (#1965113)
Assuming you mean for (int i = 0; ; ) {} that is legal syntax. Perhaps I'm dull, but what is the error?
Re:Today's Coding Interview Game by lunaru on Friday December 03, 2010 @03:41AM (#1965201)
I think the point was that in C(89) you need to declare all variables at the beginning of the scope block.