Quick FAILs in Code Questions
Sometimes it takes very little time to know that a candidate is going to be pretty horrible. As you can probably guess, the sort of questions we ask tend to be “find me this data in this sort of file”.
Probably the fastest indication is when they send me projects like this:
Now, it is possible that someone skilled will send us real projects like that, but the experience so far has been that this isn’t going to be the case. If you have someone sending a UI project, it usually indicates that they can’t think about it in any other way.
The code they send pretty much justify this concern. Some code snippets from those projects:
Yup, this is the kind of error handling I want to see. Just for fun, if there hasn’t been an error, this function would return a comma separated string of values.
Which make it just slightly worse than:
And then we have this:
I guess someone really like O(N**2) on 15 TB files.
And then there is this:
I guess we have different definitions on what configurable means.
And then there was this person:
Yes, they did send me code inside a PDF file. That was the only way that they could find to send code around, I’m guessing.
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)