News for hackers. Stuff that matters.
Re:Coding Interview Tips by Jemaclus on Wednesday October 16, 2013 @12:11PM (#6560445)
Here's where I think I diverge from most people on this topic. My personal view is that I think by the time you bring someone in for an interview, you should already know that they can code, whether that's through code samples they provide or through Github accounts or whatever.

TL;DR; Don't waste your applicants time or your own

## The Interview Interviewing should have two parts, imo:

* Confirming that I actually wrote the code I sent you and know what it means

* Confirming that you want to sit next to me for the next six months

I can tell you right now that if I take time off my current job to go sit in your office for an interview and you ask me basic questions like "What is MVC?" or "What's the difference between a POST and a GET request?", I'm going to thank you for your time and walk right out.

Why? Because my Github profile, which is featured prominently on my resume, contains examples of both. Half my projects are MVC projects, and many of them use 3rd party APIs (or are even APIs themselves!). The fact that you're asking me basic definitions means you didn't even pay attention to the stuff I sent you, so you're wasting my time and yours. You could have already figured this out ahead of time. Instead, you asked me to take time out of my day (probably during work hours) to ask questions whose answers I've already provided.

(Please note that this only really goes for non-entry-level positions. For entry-level applicants, such as kids fresh out of college, you may not have very many code samples to work with. That's fine. In that case, send some problems for them to work on at home. Hopefully, these are dumbed-down but real-world problems your company has faced in the past.)

## Phone Screen (aka verifying authenticity)

The first thing you should do is take a gander at my Github profile or my code samples. Then you call me up at a prearranged time and ask me questions about that code. Make me prove that I wrote what I said I wrote.

* I noticed you made this combat simulator (www.bitfalls.com/2013/08/autofight-php-job-interview-task-part-1.html). Walk me through your thought process.

* Your code appears to be a custom MVC. Why did you choose to go with a custom one versus say, CodeIgniter or Symfony?

* This project is an API for Nerd Nite scheduling. First of all, what's Nerd Nite and why did you make an API for it? Second, explain how you scraped the data, organized it, and output the results.

The above three questions will give you way more insight into my programming style and thought process than "What is an MVC?". Please. Don't waste my time. As a senior engineer with 7+ years in the field, I shouldn't need to prove the equivalent of my ABCs to you. It should be understood.

I personally would also skip the whole "live coding" thing via Stypi or whatever. Waste of time, imo. You've already got code samples and you can ask me as many questions as you want about it. I shouldn't need to write code in front of you to establish my credentials.

## What about people who lie?

There are people who lie about their resume and their qualifications, but that's exactly why you should tailor your questions to fit the code samples provided. If I don't get excited about that code and I can't eloquently explain why I did what I did or how it works, then maybe I didn't write it after all. It also gives you an insight as to my personality: I clearly took time out of my day to write this code. Why? What prompted me to write an API for Nerd Nite schedules?

The answers to those questions should give you an idea of whether I can actually program or not. Questions like "What is MVC?" can be looked up in a dictionary. Explaining code samples is much more difficult.

## What next?

Once you've established that I wrote the code I said I wrote, then Step 1 of The Interviewing process is mostly done. Now you bring me into the office to determine Step 2 -- am I someone you want sitting next to you for 8+ hours a day for the next six months? Do I fit in with company culture?

You could give me a problem to solve on the spot, but hopefully it's more of a higher level thing rather than a "write code on a whiteboard" thing. The reason I say this is because at this point you should already have seen my code. You should know by now that I can build a class. The question you need to answer now is: given an arbitrary problem, can I solve it or at least come up with a reasonable thought process?

Bonus points if it's relevant to the job. (i.e., if your job never requires you to write binary trees from scratch, don't ask the applicant to do so.)

## Finally

Between the phone screen (technical) and in-person interview (personal), you should have a good idea of whether you want me on your team or not.

Occasionally for small teams, you may decide that you need to know something about time, creativity, independence, and other similar qualities that you can't really get from code samples. If this is the case, then I suggest doing the contract thing, where you give them an assignment on contract. Once the assignment is finished, you hire them or pay them for the work completed (or hopefully both).

I really, really, really despise whiteboard coding. I don't think it's indicative of anything, and I think you will find a lot of false negatives (i.e., rule out good candidates) using the whiteboard method.

A few other thoughts:

* I should meet my potential future boss at the in-person interview

* I should meet at least one of my potential future coworkers

* Be respectful of my time. Most interviews take place during work hours, so I've taken time off work -- and probably lied to my boss about where I'm going! -- to meet with you. The least you can do is not waste my time.

* Be familiar with my resume and code samples. I took the time to write them, you should take the time to read them. It will answer way more questions about my abilities than a 20 minute quiz on technical terms will.

The more informal the in-person interview is, the better. The technical qualifications should already be accepted by the time I walk in the door. At this point, it's a two way street as we figure out whether we want to work together. I'm interviewing you just as much as you are interviewing me.

(Note: These are just my opinions about how I interview others. It hasn't failed me yet. On the other hand, almost every job I've ever interviewed for has completely wasted my time on that front.)

Re:Coding Interview Tips by danielweber on Wednesday October 16, 2013 @01:52PM (#6561058)
I can tell you right now that if I take time off my current job to go sit in your office for an interview and you ask me basic questions like "What is MVC?" or "What's the difference between a POST and a GET request?", I'm going to thank you for your time and walk right out.

Oh yeah? Well, if I'm being interviewed, and someone doesn't ask me those questions, I'm going to walk right out!!

This is how we debate interview tactics, right?

Re:Coding Interview Tips by smtddr on Wednesday October 16, 2013 @04:06PM (#6561831)
Seriously, I stopped reading right there. It must be the current tech-boom, the whole Demand > Supply, that creates attitudes like that.

Don't walk out on interviews just because you feel your time is so valuable. You're already at the interview. You planned your day for it and started it. Just politely continue 'till the end, you might learn something you didn't know before.

At the most, if you get a way out there question, like, you applied for a dev job and they ask about your proficiency in Microsoft Office, just politely say. "I've used it from time to time. By the way, I've never been asked that question in a developer interview before."...and just continue on. If you think so much of yourself that you're offended by that type of question and abort the interview, I think that says a lot about you just as much as the interviewer.

Hmm, I'm going to suggest to my company that we actually asked dev candidates that question! See what happens! (somehow, I doubt they'll do it.... but it'd be funny to get the reactions).

Re:Coding Interview Tips by Jemaclus on Wednesday October 16, 2013 @05:27PM (#6562257)
I probably wouldn't literally just up and walk out, but it would count against you. Why would I want to work for someone who can't be bothered to read my sample code or resume? There's a double-standard here, where I'm supposed to have done research on your company before showing up, but you don't necessarily have to do that for me.

Are you hiring me to recite textbook definitions to you, or are you hiring me to write code? You can't really have it both ways. By asking me to recite textbook definitions when I've clearly demonstrated that I know the basics (at the very least), then you're wasting my time and your own.

This isn't hubris or egotism -- it's pragmatism. I've already provided the answer, and you're asking me the question again. You should ask me something you can't easily find the answer. Or better yet, ask me a question that answers several questions at once.

You might ask "I noticed on your Github profile you have an application called NaNoWriMo clone. What's that all about?" and I might say "Well, it's an MVC-based application that uses third party API calls to Google Docs using cURL and...."

And you might find that I've answered all of the stupid, basic "What is MVC?" and "What's a POST request?" and "Describe how HTTP works" questions that you would have asked before, except now instead of asking me rote questions that I get at every single interview, you'll find that you're getting the answers to those questions and then some.

Re:Coding Interview Tips by danielweber on Thursday October 17, 2013 @09:22AM (#6565133)
Just because someone has code in their repo that uses GET and POST correctly doesn't mean the person knows why it was written that way. I've talked with people who admitted "I just copied this from stackoverflow."

It's also a very easy filter question that takes about 10 seconds to answer. There are still people that show up to interview that cannot FizzBuzz.

I appreciate feeling pissed at companies that don't seem to do any research into you. I've felt that same annoyance, especially when job hunting while employed, meaning I was using my PTO to talk to you guys. (And I especially hate the recruiters who call me at 4pm saying "I got you an interview tomorrow morning at 10am." Guess what I've got for you?) But maybe your code isn't showing exactly what you do the same way you think, or maybe they are working for an organization that is lucky enough to use something besides git.

I have a long list of complaints about how companies hire people. Giving me quick tests on basics isn't one of them.

Re:Coding Interview Tips by Jemaclus on Thursday October 17, 2013 @12:45PM (#6566514)
I think you miss my point. The point isn't that "What's the difference between POST and GET?" is a bad question (it absolutely is), but rather that there's a better way to find that answer out than ask that question.

Here's how tech interviews normally go for me.

Interviewer: "Hi. Tell me about yourself while I look at your resume for the first time."

Me: "I've been programming since I was 12, went to college, got a degree in X. In the past several years I've worked on Y, which was built using Z with blah blah blah."

Interviewer: "Great, great. Can you tell me what an MVC is?"

Me: (mentally groaning) "MVC stands for model-view-controller. A model is..."

Interviewer: "Great, great. What's the difference between a POST and a GET request?"

Me: (mentally groaning again) "They're both verbs used in HTTP requests. A POST is..."

Interviewer: "Great, great. Let's do some whiteboard coding. Convert this array into a binary tree."

Me: "function convert_array_to_binary_tree(foo) {..."

Interviewer: "Great, great. Well, we're all out of time. I'll bring in the next person."

Interviewer2: "Hi, tell me about yourself while I look at your resume for the first time."

How it should go:

Interviewer: "Hi, I'm so-and-so. I've been checking out your resume and I saw that on your Github profile, you wrote an application called NaNoWriMoClone. What's that?"

Me: (excited) "Oh man. So in my free time, I like to write. Every year in November I participate in a contest called NaNoWriMo, which stands for National Novel Writing Month. I like their interface so much that I wanted to be able to use it every day, even if it's not during NaNoWriMo. What I did was I started out with a custom MVC framework that I wrote a year ago. Basically, you go to the main page, and you sign in using either FB or Twitter sign-on, which use OAuth to connect. I wrote a custom OAuth implementation, which you probably saw on my profile. I can go into detail about that, if you want. Anyway, so there are two models: users and novels. There's a one-to-many relationship where one user can have many novels. As the user writes, they can update the word count on the novel, and the app will calculate progress and how many words need to be written per day."

Interviewer: "Cool! I like to write too and I did NaNoWriMo last year. It was a nice experience, but it was so hard to track words."

Me: "I know! I thought about that, too, which is why I also integrated it with a Google Docs API. What I'm doing in the Google_Api class is hitting their API with a GET request to get the contents of their novel, then I count the number of words and update their count automatically. That's one thing NaNoWriMo doesn't do -- you have to input your progress manually. I also want to add a Markdown editor in-app which would send a POST request back to Google Docs and update the novel. So they can write it in the app and store it in Google Docs!"

Interviewer: "Awesome. You mentioned you used the Google Docs API. Did you run into any problems with that? If so, how did you get around them?"

Me: "The Google Docs API is pretty straightforward, but I wound up having to make several requests to get the data I wanted. For instance, I have to make one GET request to get the list of documents my app has access to, then another GET request to get the actual document I wanted, and then a third GET request to get metadata about the document. It took me awhile to handle exceptions, such as if I was denied access to a specific document, but I finally got that working, and now if something goes wrong, I can notify the user and have them look into the permissions or whether the document actually exists and so on."

Interviewer: "You mentioned you wrote the MVC framework from scratch. Why did you do that rather than use CodeIgniter or Symfony? Did you run into any problems?"

Me: "I decided I wanted to learn how MVC worked from the ground up. I had used Symfony in the past, but I wanted something a little less complex. So I started off with..." (and so on)

Interviewer: "I see you went to X college and got a degree in Y. That's interesting. How did you transition over to programming?"

----

Anyway, as you can see, the interviewer is getting WAY more out of me in the second example. Not only does he know that I know what MVC means, I've also demonstrated that I know how to use a 3rd party API, which necessitates knowledge of GET/POST requests. Furthermore, with a follow up question like "What problems did you run into?" the interviewer can find out whether I actually wrote it myself or if I went to StackOverflow to copy and paste it.

The point isn't that "What is the difference between POST and GET?" is a bad question (though it is unquestionably an inefficient question), the point is that you can find out that information in other ways (specifically from code samples!) and get so, so, so much more out of the interview. You will not only be saving both of us time, but the experience should be much more enjoyable for both of us.

You'll also notice in the second example that I've expressed non-programming aspects about myself. I enjoy writing. Maybe my interviewer enjoys writing (everyone harbors aspirations of writing a book someday, yes?), so now we have something to connect on. I have a non-CS degree. Maybe in a topic the interviewer is interested in. It establishes that I'm a real, live person and not just a code monkey. It's something we could talk about over lunch that's not work-related. It's a huge plus, imo.

Finally, your "lucky enough use something besides git" is irrelevant. You don't have to use git to look at my Github profile. My public repositories are public, and you can view the code willy nilly without even signing up for Github. You could just as easily substitute SVN or Mercurial or whatever.

This is why articles like OPs frustrate me so much. They pile on with the simple questions that get a single answer and don't really teach you how to interview more effectively.

Re:Coding Interview Tips by smtddr on Wednesday October 16, 2013 @09:10PM (#6563098)
I agree, but I think people should still maintain politeness even if the interviewer appears to be doing a less-than-awesome job. Even if you already know halfway into the interview that you're not taking any job-offer from them... just go through it 'till the end. If nothing else, it's an experience and maybe you'll pick up more info on how to avoid those companies in the future.
Re:Coding Interview Tips by Jemaclus on Thursday October 17, 2013 @12:57AM (#6563747)
Sure, I agree.
Re:Coding Interview Tips by bigtunacan on Wednesday October 16, 2013 @04:19PM (#6561905)
Agreed. Personally; if I'm giving an interview and the candidate were to walk out for something like that I would be thinking, "Glad they walked out; I really would rather not work with that asshole."
Re:Coding Interview Tips by Jemaclus on Wednesday October 16, 2013 @05:22PM (#6562230)
There is such thing as figures of speech. :) I doubt I'd seriously just up and walk out, but it would be a huge strike against you on my part. Remember, you're not just interviewing me -- I'm interviewing you as well.
Re:Coding Interview Tips by rev_null on Wednesday October 16, 2013 @06:50PM (#6562571)
How will you know that no one is going to ask those questions if you don't stick around for the entire interview?
Re:Coding Interview Tips by lquist on Wednesday October 16, 2013 @05:32PM (#6562277)
As a senior engineer with 7+ years in the field, I shouldn't need to prove the equivalent of my ABCs to you. It should be understood.

You'd be surprised how many 'senior' engineers can't code their way out of a cardboard box.

Background: I've interviewed hundreds (if not thousands) of engineers.

Re:Coding Interview Tips by pedalpete on Wednesday October 16, 2013 @06:12PM (#6562432)
I'm always curious about the senior engineers who "can't code their way out of a cardboard box". I often wonder if I'm one of those, or come across as one of those.

Can you give an example of something you've seen. I just keep hearing about people who can't do fizzbuzz, but how bad are people really? Or what is it that makes these engineers so bad? How have they lasted in the industry?

Re:Coding Interview Tips by rjzzleep on Wednesday October 16, 2013 @06:36PM (#6562517)
they're really bad. i interviewed people that couldn't fill in a simple fizzbuzz after defining a function body and return type for them. they last because they can last, a lot of these jobs really just require codemonkeys. I have seen if states literally hundreds of words long made by these kinds of people.

that said i feel you. tbh, i have managed to impress anyone i worked with. most were people i met at hackathons, people that wanted to bootstrap their startups or general referals. on the other hand I failed most interviews i took(with a few noteworthy exceptions)

It once took me until after the interview to figure out that the guy just wanted to find out whether i understand how variable scopes work.

A lot of interview questions are questionable at best, and most code challenges are even worse. they're exactly how universities teach programming. The only problem is that universities suck at teaching programming. I know a lot of really awesome people that went to university because they thought knowing the topic they study was a good idea, but it turned out to be the opposite.

But one lady once asked me is there a special command to find out where traffic goes? I said route. Is there any special flag you would use she continued. But what she wanted was to hear route -n.

I'm pretty sure in those kinds of interviews they think i'm an idiot

Re:Coding Interview Tips by otherdave on Thursday October 17, 2013 @08:39AM (#6564941)
I have two examples to share. A simple whiteboard question I ask is "Write a function to compute interest on your money. You have $X and I'm going to give you y% interesting for Z years."

I'm generally happy if they don't ask any questions and write a simple interest calculator. Most people ask some questions about when interest is calculated during the year. Then, if the questions haven't gotten us there yet, I ask them to modify it to a compound interest calculator where you can also contribute some money every year.

I've never had anyone who didn't understand the concept or what I was after. Or at least I didn't have anyone who admitted to still not understanding how it worked.

Two people stand out.

One of them immediately tried to write a recursive function and got lost. Then started over and tried to calculate a one-liner to do compound interest without looping. Couldn't get it, started over with a for-loop and failed to return in the proper place: the code was returning a value and then immediate next line was more calculation.

The second let me explain the problem and then said "I'm sure there's some library call for calculating compound interest, I'm just not sure what it is." Full stop. I explained that I wasn't asking for the library call, I was asking them to work up the algorithm and write code that did it.

They repeated the statement that there was a library call for it but they didn't know it and that if the interview was going to be about the specifics of library functions then it wasn't going to be a good interview.

In both cases these people passed a phone screen focusing mainly on experience, algorithms, design, etc... Since then I've adapted the phone screen to cover more of Steve Yegge's points [1] and I actually include a small coding question on the phone.

I don't think my system is perfect, but in the last round of hiring the people who made it through the screen were almost all good technically and weren't offered positions because of fit with the team. I'm sure there were a few people who might have been good that got filtered out by writing code over the phone but at the time I was willing to risk that vs the time commitment for the rest of my team to do on-site interviews for someone that could be DOA.

[1] https://sites.google.com/site/steveyegge2/five-essential-pho...

Re:Coding Interview Tips by catmanjan on Wednesday October 16, 2013 @06:21PM (#6562465)
"Engineers" who use so many nested if's that I have to horizontally scroll my 2560px width monitor.

They've lasted because they've usually only had one or two employers, as a permanent employee (rather than a contract) and no-one code reviews until it's too late.

Re:Coding Interview Tips by joe_the_user on Thursday October 17, 2013 @03:11AM (#6564033)
So you are saying that you have interviewed hundreds of engineers and found many, many wanting according to whatever standards you set up in your interviews? Including many who came with high, verified recommendations from other workplace?

Have you also followed up on those failed interviewees to verify that in a real world setting they cannot perform?

If you haven't, then all I can see is a statement of "I have a standard very few can meet".

Re:Coding Interview Tips by EdwardDiego on Wednesday October 16, 2013 @07:15PM (#6562684)
The more pernicious senior engineer is one who can code their way out of a box in an interview, but cannot deliver working code in a production environment due to various reasons - perfectionism seems to be a common thread to not delivering in my (limited) experience.

Do you have any pointers on weeding these candidates out? Our country's employment laws make it hard to fire net negative producing programmers.

Re:Coding Interview Tips by sockypuppy on Wednesday October 16, 2013 @07:44PM (#6562772)
> can code their way out of a box in an interview, but cannot deliver working code in a production environment

> perfectionism seems to be a common thread to not delivering in my (limited) experience

I'm afraid I'm the engineer being described here. I pride myself on technical excellence, theoretical understanding and practical experience with lots of different technologies.

Yet my work history mostly consists of an unbroken trail of unfinished projects and undelivered deliverables stretching back decades.

How can I cure myself of this? Or should I switch careers?

Re:Coding Interview Tips by elohesra on Wednesday October 16, 2013 @10:54PM (#6563428)
I suppose the answer can only be supplied if we know more about you as a developer, and as a person. If you're a perfectionist, then it could well be that your previous projects are perceived by others to be of better quality than you yourself perceive them. A perfectionist could well consider a project 'unfinished' if it doesn't cover improbable edge cases, for example.

However, assuming that you're accurate in your statement that your projects were unfinished, then it would appear that you need to question why that's the case, as we cannot infer that the traits you've ascribed to yourself are the cause of project failures without knowing more about the other variables in the equation. For instance, the projects may well all have been failures for no fault of your own: scope creep, management interference, poor teamwork (or poor team members), or any number of other variables could be responsible. But since this is not something we can address at this point, let's assume that your project failures are indeed a result of your perfectionism.

The easiest way (in my experience) to 'cure' perfectionism in software is to follow the YAGNI ("You Ain't Gonna Need It") mantra, coupled with approaching a project from a divide and conquer perspective (yeah, pg would pretty much hate this). First break the project into its key deliverables and its 'nice to haves'. Once all the key deliverables are complete, then the project is complete; 'nice to haves' aren't factored into the completeness equation for the project. Once you know what your key deliverables are, then order them in terms of dependency: if deliverable A requires that deliverable B be completed before deliverable A can be completed, then focus on deliverable B first. Now that you know what you're supposed to be working on, you can get started on the deliverable at the root of your dependency tree, but whilst working on it ensure that you're only adding the functionality necessary to complete the current deliverable. As you work your way through your deliverables, refactor the previous deliverables as necessary to make your current deliverable work. For instance, if your root deliverable wasn't required to be thread-safe when you first wrote it, but your new deliverable requires it to be thread-safe, then work your way back through your deliverables refactoring as necessary in order to meet the requirements for your current deliverable.

By sorting your deliverables into dependency tree, you can ensure that you can properly apply YAGNI. It's very tempting for a perfectionist to turn into an architecture astronaut, and spend weeks or months mapping out the entire solution and all its edge cases before they've even started to work on a single deliverable; by keeping your deliverables in a dependency tree and working from the least to the most dependent, you force yourself out of this mindset. By applying this method, you also force yourself away from analysis paralysis, because you're not permitting yourself to consider patterns or architecture until the project's current deliverable necessitates it.

It's worth noting that this method won't work for all projects, as it requires a good understanding of what the deliverables for the project actually are before you can apply it. It also may not work for you at all, since it's all down to personal experience, but I've personally found that forcing yourself to focus only on the concrete deliverables ensures that you don't end up stalling yourself in analysis, and gives you lots of little pep boosts in the form of finished deliverables and refactorings.

Nonetheless, good luck finding a cure that works for you.

Re:Coding Interview Tips by Jemaclus on Wednesday October 16, 2013 @07:31PM (#6562733)
Sure, but that's what code samples are for. If I send you code samples, and I can't explain to you what they mean or how I built them, or describe a variation of your choice about them, then you can assume that I don't know what I'm talking about. You can do this over the phone. There are endless, quality, revealing questions you can ask about provided code samples that are far, far, far, far superior to asking the equivalent of reciting the ABCs.

No code sample? Get some. Won't provide some? Don't bring them in for an interview.

The point I'm making is that you can pre-qualify candidates in a LOT of ways before you even bring someone into the office. If I get into your office and you ask me dumb, basic questions, then you haven't screened me effectively. You should theoretically be able to make those determinations before I ever step through the front door of your office.

Re:Coding Interview Tips by lquist on Wednesday October 16, 2013 @07:47PM (#6562789)
Sure, but that's what code samples are for. If I send you code samples, and I can't explain to you what they mean or how I built them, or describe a variation of your choice about them, then you can assume that I don't know what I'm talking about. You can do this over the phone. There are endless, quality, revealing questions you can ask about provided code samples that are far, far, far, far superior to asking the equivalent of reciting the ABCs.

That seems like a reasonable idea, but we've tried that before, and it's just a terrible filter. Let me try to make a more general claim: anything that lets the candidate have outside resources or unlimited time is going to be a bad filter. In this case, the candidate can prep the code sample and be able to explain it well.

Re:Coding Interview Tips by BillyMaize on Thursday October 17, 2013 @09:02AM (#6565032)
How do I bring in code samples when all of the code I write has been for my previous employers and therefore is owned by them? Can't I be good at what I do without spending free time away from family and hobbies doing it even more?
Re:Coding Interview Tips by diminoten on Wednesday October 16, 2013 @02:05PM (#6561150)
Wait is 7 years all I need to be a 'senior engineer'?

And what do I do if I don't like to release my code publicly? Should I not be hired by any company if I'm not personally a fan of open source (hypothetically)?

Re:Coding Interview Tips by Zombieball on Wednesday October 16, 2013 @02:39PM (#6561326)
In fact some companies explicitly prohibit publishing code publicly without requesting special permission.

I don't think candidates should be excluded based on the lack of a github repo.

Re:Coding Interview Tips by freework on Wednesday October 16, 2013 @02:56PM (#6561418)
Its no that difficult to create a github project that can be completed in a weekend. I created the hacker new karma tracker and weedprices.biz in one weekend each.
Re:Coding Interview Tips by adamnemecek on Wednesday October 16, 2013 @03:06PM (#6561474)
But would you really make hiring decisions based on either of those projects? Software development is 'relatively' easy when your project is <1000 LOC. It becomes harder as the project grows. And it's the ability to grow the project what you should make the hiring decisions on.
Re:Coding Interview Tips by mattstreet on Wednesday October 16, 2013 @03:57PM (#6561784)
Yeah but judging someone's ability to code by several good <1000LOC projects is probably better than the sorts of coding problems you have time to give someone during a coding interview.
Re:Coding Interview Tips by adamnemecek on Wednesday October 16, 2013 @04:19PM (#6561912)
That's actually a good point I have not though of before. I considered your Github account to be the place where you'd show off your l33t sk1llz, as opposed to show off code similar to the code you'd write during interviews.
Re:Coding Interview Tips by nephorider on Wednesday October 16, 2013 @04:01PM (#6561803)
Sure but then if this becomes a "must have simply to have the opportunity to interview" then it loses all the value it can have to reveal what the person can do. And I do believe some people have no time for this. Having worked at Apple for some time, I guarantee my sparse time, when there was some, was more outside of any coding and still I will never show outside a piece of code I have written in this company. This does not mean the coding skills I have should be considered as good or sufficient, they may or not match the one needed for a position. Having been also in the position to be on the interviewer side, especially in startup, seeing the candidate in person reminds often the deciding point.If some code on github exists, it simply can "speed up" a little this part of the process. Personally I found the "Smart and get things done" book by Spolsky a good read on how to conduct interviews
Re:Coding Interview Tips by mnbvcxza on Wednesday October 16, 2013 @07:00PM (#6562618)
And I could copy them with minor modifications and claim I designed it all, in only a few minutes.
Re:Coding Interview Tips by toomuchtodo on Wednesday October 16, 2013 @03:07PM (#6561485)
I agree, but I understand its part of the game played. I have 13 years of IT experience, but still contribute to open source projects on Github, as my day job codebase can't be released/be part of my portfolio.
Re:Coding Interview Tips by vonmoltke on Wednesday October 16, 2013 @03:51PM (#6561756)
As soon as things like that become "part of the game" they start losing their signalling value.
Re:Coding Interview Tips by hackinthebochs on Wednesday October 16, 2013 @05:36PM (#6562286)
Exactly why I cringe at every one of these "my awesome interview tips/tricks/hacks/etc". The very fact that you publicly stated it makes it lose significant value. Most forms of testing are high value until the test becomes the goal, then its worthless. I guess having a handful of hits on their block one afternoon is more valuable to them than a useful hiring signal.
Re:Coding Interview Tips by Jemaclus on Wednesday October 16, 2013 @05:29PM (#6562265)
I would wonder why you don't like to release your code publicly, or at least have code samples ready to show. If I asked you for code samples and you didn't have any, I'd ask you to complete some work-at-home tasks, as I mentioned in my previous post. Those code samples would probably be enough.

If you refused to send me code samples, I wouldn't bring you in for an interview.

Re:Coding Interview Tips by dmoy on Wednesday October 16, 2013 @09:46PM (#6563206)
For example:

1) Work for a company that does not allow you to post code that you write at work (fairly common)

and 2) Don't have time / don't want to spend time on homework for an interview

Combined with: a) Do not code for fun at home

or

b) Code for fun, but in something so completely unrelated that it's not useful (8 bit microcontroller code, say)

or

c) Code for fun, but not seriously with any kind of quality

If you gate your interviews on who has public code repositories, you're missing out on a LOT of qualified people.

Re:Coding Interview Tips by Jemaclus on Thursday October 17, 2013 @01:05AM (#6563768)
1) Not a problem and very understandable. I don't require work-related samples, just code samples in general. 2) Also understandable, but it's really no different than doing it on a whiteboard in my office. Might as well take 30 minutes to write some code in an environment where you're comfortable versus doing it on a whiteboard where you're under pressure, yes?

A would rule you out as a candidate for me. Passion is almost always a requirement. B would be acceptable -- in general, language doesn't matter. It's the ability to write code and explain it that matters. C would be a tossup. If you write crap code for fun, then why would you write better code for real? But I get that. Sometimes I write code for fun just to see if something works, and I never refactor it to make it more efficient or whatever. That's understandable. Again, it's more about the ability to master the basics to begin with.

I can teach you to be a better programmer, provided you understand the basics (which your code samples should demonstrate). I don't have time to teach you the basics (unless I'm specifically hiring an intern or something.)

Also, consider that in my original post, I said this is my process and how I do things. It has worked very well for me so far. I may rule you out, but I'm willing to bet that there are others equally as good (or better) than you that are willing to do what I consider to be far less annoying than the way interviews are conducted now.

I don't want to waste your time -- nor my own time. That's the end game here. By having code samples ready for me, you are eliminating a not insignificant amount of redundancy for both of us.

Re:Coding Interview Tips by gaius on Thursday October 17, 2013 @07:36AM (#6564683)
Sorry, but that's silly. We don't expect doctors to do amateur surgery at home. We don't expect pilots to fly their kids to school in a microlite, and we don't expect lawyers to sue people for fun.

"Codes for fun" is HR-compliant jargon for "20-something, no kids, willing to work unpaid overtime" and it'll be caught out as soon as some "sues for fun" lawyer can be bothered to mount a case.

Re:Coding Interview Tips by walshemj on Wednesday October 16, 2013 @06:26PM (#6562481)
Asking some one to work for free before you interview them does not give a terribly good signal as to how good you would be as an employer.
Re:Coding Interview Tips by Jemaclus on Thursday October 17, 2013 @01:06AM (#6563775)
I'm not asking you to work for free. I'm asking you to provide code samples. There's a big difference. It's no different than coming into my office and coding on a whiteboard for me.

And for your other argument, I have a full time job but will sometimes take very short term (5-10 hours of work) contracts for interview purposes. Usually this is a last step before getting a job offer, more as a way to gauge whether I'd work well with the team than whether I can code in general.

Re:Coding Interview Tips by RussianCow on Wednesday October 16, 2013 @06:49PM (#6562567)
It doesn't have to be for free. I know someone who would "hire" potential candidates for a 2-week contract, and based their skill on the code they write during that time. If the candidate doesn't end up getting hired afterwards, he still gets paid for his time. It's a win-win.
Re:Coding Interview Tips by walshemj on Wednesday October 16, 2013 @08:03PM (#6562859)
Doesn't work if you are employed already though.
Re:Coding Interview Tips by moron4hire on Wednesday October 16, 2013 @04:00PM (#6561797)
In the case of my company, if you're not a fan of open source, you wouldn't have a place.
Re:Coding Interview Tips by Bahamut on Wednesday October 16, 2013 @04:31PM (#6561990)
I agree with most of these points, but my team lead brought up an excellent point while we were interviewing someone - my team lead had the candidate do a stupid easy algorithm question just to see whether the candidate was the real deal, and explained to the candidate is that anyone could list a Github profile as part of their resume.

The candidate was understanding, and did it - he didn't have to have exact syntax, I was happy enough seeing psuedocode since I already took a peek at the Github profile that was a part of his resume.

It only wasted a few minutes of his time whiteboard coding, and it wasn't intense, so it gave him a nice easy way for him to explain his thought process. I asked relevant questions to the code that he wrote, and it lead to a good discussion on some things.

I felt that we were mutually happy with the experience, as he subsequently accepted our job offer.

On the whole though, asking stupid questions is a waste of both side's time.

Re:Coding Interview Tips by Jemaclus on Wednesday October 16, 2013 @05:32PM (#6562274)
I think anyone can list a Github profile as part of their resume, absolutely. That's why I said you should ask questions about the contents of that Github profile. Explain why you built X and how Y works and if you could do Z differently, what would change? What were the biggest problems with this project and what did you think would be hard about that project but turned out to be easy? And so on.

IMHO, there's no need for whiteboard coding.

Having said that, if you are going to ask me to do some whiteboard coding, I would greatly prefer something like you described -- a high level response that tests my thought processes. You can see my code on Github, I shouldn't have to write some on a board. But I'll be happy to explain thought processes while solving a problem.

Re:Coding Interview Tips by Bahamut on Wednesday October 16, 2013 @05:50PM (#6562341)
I can see both POVs, and they definitely have merit. In my own interview for my current job, I was very happy to not have to code anything - the team leads who interviewed me already found it obvious that I was extremely smart & knowledgeable despite having less than a year of experience.

Not that I would have minded coding on the fly or answering stupid brainteasers - I grew up figuring those things out. Those leave me with negative impressions of the company though, and may lead me to demand a higher salary to accept a position.

Re:Coding Interview Tips by dllthomas on Wednesday October 16, 2013 @12:27PM (#6560539)
"Know that they can code" and "know how they code" are different things, and it's possible the latter could effect how well they fit into your team. Whether an interviewer can actually do a good job assessing that is another question...
Re:Coding Interview Tips by Jemaclus on Wednesday October 16, 2013 @01:39PM (#6560972)
Excellent point. Those are definitely two different things and are both important, but I would argue that you can determine the "how they code" component during the interview as questions about previous projects, rather than making them write code in front of you. And again, a short-term contract would also work to solve this goal while not wasting my time.

Very good point, though.

Re:Coding Interview Tips by rurounijones on Thursday October 17, 2013 @04:30AM (#6564210)
"How they code" can be slightly answered by looking at the commit history of their code samples (Which they have on github / bitbucket / other site... right?)
Re:Coding Interview Tips by dllthomas on Thursday October 17, 2013 @09:16AM (#6565106)
Not really. I'm talking process more than result. The question is whether their process and your processes mesh well, and watching them work on something could well provide information that static commit histories lack.

As mentioned, I'm a bit skeptical that an interviewer can reliably extract that information.

Re:Coding Interview Tips by codex_irl on Wednesday October 16, 2013 @05:12PM (#6562191)
THIS - So true, I am a Ruby developer and could probably earn an extra 20k if I changed jobs tomorrow, however I will not sit through an interview being asked stupid questions like "What is MVC", "solve this big O problem" or implement some algorithm that I will only ever need to use during interviews & can then forget about...that type of interview is very telling of the companies work environment & the type of people you will have me working with.

I will send you code samples or show you my contributions to open source projects so that you know I can code, happy to discuss these until you are happy.

What is far more important is to find out about me, do you like me, can you work with me & tell me honestly about your dam culture - do you expect everyone to be at there desk at precisely at 8am, work a minimum of 80 hours per week? How is productivity measured? Do you expect me to attend some "team building" weekend nonsense when I could be spending time with my wife instead.

Re:Coding Interview Tips by FLUX-YOU on Wednesday October 16, 2013 @12:31PM (#6560570)
>In that case, send some problems for them to work on at home. Hopefully, these are dumbed-down but real-world problems your company has faced in the past.)

As an entry level applicant, I can't stress how important this was to gaining insight into both how I function when given a deadline and what kind of work is in store for me. It also lets me know what I might need to study in the future or what I need to study immediately.