News for hackers. Stuff that matters.
Re:Ask HN: "a piece of code you're proud of" - what does it ... by RiderOfGiraffes on Sunday September 12, 2010 @08:50AM (#1683569)
As an interviewer, if I ask for code it's for three reasons. I want to know:

a. ... that you can write code.

b. ... what your code looks like, to see your style.

c. ... how well your taste and judgement aligns with mine in the question of "good code".

I wouldn't want much, I wouldn't want anything world-shattering, I just want to see some code you think is clean and effective.

But that's me.

Re:Ask HN: "a piece of code you're proud of" - what does it ... by relix on Sunday September 12, 2010 @11:55AM (#1683838)
Sounds good, but couldn't the applicant just copy code from the internet which he heard was good code? It doesn't prove he can write code.

This does make sense if you'd ask him to explain it at the interview, but then the applicant can also give context and explain why he thinks it's good code.

Re:Ask HN: "a piece of code you're proud of" - what does it ... by RiderOfGiraffes on Sunday September 12, 2010 @12:35PM (#1683945)
Anything done on paper/email could be the work of someone else. The first thing we then do in interview is give the person a disk-less, internet-less machine and get them to write FizzBuzz. As they do it we get them to talk about their usual dev environment.

Once they've done that we move on to discussing the code they sent.

All these things are purely to weed out the complete time-wasters. From the remainder, we then try to find someone who can design, code, document and collaborate.

Re:Ask HN: "a piece of code you're proud of" - what does it ... by anthonyb on Sunday September 12, 2010 @08:02PM (#1684928)
No, because in the follow up (either telephone or face-to-face) you're normally asked questions about the code (I do, anyway). It's incredibly easy to spot people who've cut+pasted something and have no idea how it works - just ask them why they did it a certain way, or what tradeoffs they made, and watch them squirm...
Re:Ask HN: "a piece of code you're proud of" - what does it ... by ams6110 on Sunday September 12, 2010 @01:05PM (#1684042)
I'd assume that anyone receiving code "from the internet" could quickly determine this was the case with a few minutes' time on Google.
Re:Ask HN: "a piece of code you're proud of" - what does it ... by code_duck on Sunday September 12, 2010 @12:45PM (#1683979)
I suppose, if you want to be disqualified for plagiarism. No different than handing in someone else's work for college.