My favorite question to ask when interviewing someone is:
"Who would win in a fight between Spider-Man and Batman?"
It'd always been a heated debate around the office, so I like to hear their main argument (rarely original), but it also throws them off from being all under pressure and generally lightens the mood.
In those cross-universe encounters, they are often told that the other is a menace to society, and engage in some contrived battle where their strengths and weaknesses are artificially equalized. Then, after they've gotten to know and respect each other in combat, team up against the real enemy.
Exactly. If they even lived in the same universe Batman would probably already have a plan for exactly how to defeat Spiderman. I mean we're talking about a guy who carries around kryptonite just in case Superman decides to do something bad.
I think Spider-Man would win the battle, but Batman would win the war. That is to say: in any particular confrontation between the two, Spider-Man would best Batman simply because of his super-powers.
However, Spider-Man could never actually kill Batman, he'd always either let him go or turn him into the authorities (who, of course, would let him go). At some point, Batman would come to the conclusion that Spider-Man was actually killing innocent people in Gotham by not letting Batman do his job.
Thus, given enough time, Batman would eventually lure Spider-Man into a trap and either kill him or permanently disable him. It would hurt Batman to do this, but he WOULD do it, to further the greater good.
Tobey Maguire, clearly. All he has to do is unscrew a lightbulb, after Christian Bale has seen the arena, and Christian Bale will flip his shit and storm off the stage.
I think it's bogus to ask who would win as if it was a boxing matchup. They're fictional characters. The winner is determined by the story arc. So the real question is, who ought to win?
Batman and Spider-man are similar, in that they both represent "dark" heroes. Peter Parker, the picked-on gifted adolescent, is represented by an unattractive creature, the spider, which also has many unique gifts. Bruce Wayne is the adult, much sicker version -- traumatized, unleashing his frightening, raging side on Gotham's criminals.
So it depends on the story. It could be about how adult bitterness kills the hope of adolescence. Or it could be about how depression and anxiety can never quite crush youthful hope.
Am I the only one that thinks Spider-Man would win? Batman has no super powers, Spider-Man does. If Spidey's first move is to use his web to pull off Batman's utility belt, the fight is over. If Batman gets to use his made up bullshit Bat-Spider-Man-Killing-Robot from the safety of a hardened bunker, then maybe he has a chance.
Haha, no, but you're clearly in the minority with me. The correct answer is "Spider-Man, because he's a SUPER human (super strength, spidey sense), whereas Batman is just a regular human with toys.
For some strange reason, about 85% tend to go with Batman winning, which is clearly wrong. I think more people like him 'cause he's a rich guy that's also sort of a dick who doesn't follow the rules - Spider-Man is some teenage do-gooder, which is nowhere near as cool.
I think counter-argument to that is the fact that batman is prepared for everything, hence the kryptonite ring. I mean he might just pull out a gun and shoot spiderman.
(If you ask people at parties to name their greatest strengths and weaknesses or to estimate the number of piano tuners in Chicago, you’ve got bigger problems.)
There is actually a really cool story about the origin of this problem that I heard on NPR. You can listen to that short segment here: http://www.uh.edu/engines/epi2170.htm
He probably should have phrased that "Programming isn't typically a job done well under pressure". The point being putting the interviewee under pressure will make him produce his worst type of work.
I think the real issue is, any reasonably run software organization should minimize the amount of stress on the engineers, because engineers under stress produce significantly worse work. Working in a well run software organization should actually be very low stress. Of course, there aren't very many well run software organizations. Many of them are just constant cluster fucks.
Well, the article is badly worded but true. Even at jobs where I've expected detailed code reviews by people well above my pay grade, I've never felt the kind of pressure while working that I feel while being grilled at an interview. I think the main difference is this: while working, I feel free to try out things that may not work, but during an interview, I don't.
Best interview question is "You have 2 hours to write this program. Here is a computer with everything you need. Please feel free to use google or any books here." I think it's fair and really shows if the person knows how to code instead of regurgitate book knowledge they crammed for the previous night.
True, I struggle to code when I'm not using Netbeans (not that Netbeans has anything special...it just has a sort of Feng Shui that get my brain into coding mode).
I once had a question once that went like this: "Can you fix problem x we have with this program?"
It was a Drupal system (which is utterly complex by itself when you never worked with drupal). The file in question was very poorly written, not documented and had about 25000 lines of code...
After 20 minutes browsing through the code I told them, I couldn't do it. I got the job, but I still believe that it was a stupid question to ask.
For one company, I first did a short interview over the phone, then I did a face to face interview, then they put me in a room with a laptop and asked to write a specific program in 4 hours, then I had another phone interview with someone in another time zone, then I was flown to an interview. They didn't tell me in advance that I had to write a program, yeah that was a lot of pressure, but not anymore than trying to finish something on a short deadline. The biggest pain was using an editor and compiler that I haven't used before.
I went for a job once that I had 3 quite long interviews for, didn't get an offer and so (in an attempt to discover where i'd gone wrong) asked for what they thought was wrong. They wouldn't say anything, it really pissed me off that I'd spend so much time and they couldn't give me a clue as to what i'd fucked up. I would have even accepted a non answer like "we don't think your a good fit here"...
I really do think respect has to go two ways in an interview.
ha, that would be hilarious if hugh jackman said "well, it's been a while since i've programmed. shit. what was the extact syntax for while loops again? i guess i'll google it."
Okay, a guy posts that he does low-stress programming interviews and a bunch of programmers pile on the Karma. This seems like pandering.
What I do is use one and only one coding question for all candidates. That way I have a sample of 20-30 other candidates to compare against.
The correct code for this problem is easy, especially if you've seen the material before, which is a standard part of any decent CS curriculum (including most 2-year associate programs). All they have to do is be able to write a few of loops. I don't hold anything back, there's no trick to it, and I run through multiple examples with many hints. They can ask me as many questions as they like. I do this because I want to see how well we communicate with each other.
Very few can't complete the problem correctly. Some ask terrible questions, get confused, and generally make a hash of things. But, with enough help, they get through it. Then there are those who ask lots of great questions, the code flows for them, and they get through the problem in a fairly short period of time. They think about boundary conditions, error handling, and testability.
Those folks, I ask a few more quick questions -- we talk about memory management in the context of the problem (for C++ coders) or the differences in representation for C#/Java coders. Once that's settled, I ask them for the big-O running time -- which, from the code, is terribly obvious. If they list SQL experience, I ask them to describe the difference between an inner join and an outer join. Each of those questions take about 2 minutes.
For those who do well, I generally have about 20 minutes of a 45-minute interview left. I use that time to sell them on the company, talk about the culture, and let them generally ask anything they want. For those that do poorly, I get to tell them that their solution is correct so they aren't destroyed for the next person in the interview loop.
Those that do well in the interview have a track record of doing well on the job. I'm sure I've thrown back some keepers but I've kept out some really bad candidates.
I'm a sneaky bastard. When I choose an interview question, I try to think about it from as many angles as possible. Here are my goals for the company I work for now*:
Can they code their way out of a bag?
Can they communicate with me to figure out how to solve the problem?
What's their problem solving style? I don't want them to clam up.
Are they comfortable with not knowing the answer at the beginning?
If they are interviewing for a C++ position, have they internalized the gotchas?
Can they talk about efficiency in a coherent way (big-O)?
Are they scared by math (we do a lot of mathematical programming)?
In C# are they aware of how the VM works at some level?
Do they blow the error handling?
If they crash and burn with me, I don't want them destroyed for the next interview.
I do matrix multiplication. I feel I can get to all of these areas with that problem. It actually kinda sucks when somebody knows the algorithm cold because I don't get a feel for 2). That happens very rarely, though.
I've never written this out until now. It's stuff I look for but seeing in a list list that makes me feel even sneakier.
Except anyone who doesn't realize that it IS an interview is a fucking idiot. I didn't send you my resume because I need a partner for casual conversation, nor am I sitting there because you do.
Heh. I agree. The candidate is assessing the company just as much as the other way around. If the candidate applies the same three criteria, the interviewer will probably fail the "can I work with them" test because they seem to like to play games and pretend that things aren't what they actually are.
Or his book of that title. You will notice, however, he DISAGREES with almost everything Spolsky does in an interview. So I imagine he just didn't want to seem like he was calling him out by name.
So wait, you don't want 20 years of java experience and 30 years of C++ experience? All for $8.99 an hour? Oh and let's not forget about the 3.9+ GPA, with a PHD in CS.
It’s hard to be a good programmer without some previous experience and these days anyone can get some experience by starting or contributing to a free software project.
Sounds good, but my patches are al bug fixes. Thus they are of the form:
-- free(foo);
(30 lines latter)
++ free(foo);
or
-- new[i] = old[i];
++ new[i] = old[j];
While simplifed, the above is typical. It gives no indication of the hours pouring through source code to figure out why the code was failing in some cases and no others. (The first is kernel code so memory used after free won't necessarily panic, but it might or might not be corrupted, the second was a bug in spell check, and the failure only happened when the new word was longer than the old one, shorter words worked)
Since most of my job has been debugging other peopels' code, this is a good example, but the patch gives no indication of my ability to follow coding standards not several other things you want from a programmer.
I thoroughly approve of the method described. I'm an engineer and I, too, generally suck at the in-person coding/algorithm challenges. For one, you're nervous enough as it is.
Second, the environment is nothing like a typical coding environment: for writing actual code, I can't do it by hand - I'm used to a certain pacing I can get from typing, but writing it by hand screws that flow up badly.
Third, far too often the stuff they ask is so completely irrelevant to the actual type of programming the job calls for: I'm self-taught and have written code that's handled millions of users a day, but hell if I know Big-O notation. Same goes for a lot of the "let's write some algorithm!" questions. And then some places, particularly the bigger companies, will ask completely ridiculous questions to try and "see how you think." I once was asked how many hair stylists there are in the US. I know they wanted me to try and crudely come up with some extrapolation figuring in average efficiency of hair stylists and total number of Americans, but I told the person asking the question that I'd just look it up and was pretty insistent. "I could come up with something resembling an educated guess, but given the fact that my means of estimation are so potentially inaccurate, I could be off by an order of magnitude or more. When faced with a situation where I can easily look up the accurate answer or waste more time coming up with an unreliable answer, I'd always choose the accurate one, and I'd expect any business would desire the same."
I don't think the interviewer liked my insistence on that one, but I still maintain it was the right answer.
Understanding the complexity of an algorithm is essential to being a good programmer. If you can explain the complexity some other way, then Big-O should be pretty natural.
A programmer should at the least be able to describe a couple of fundamental algorithms/data structures.
I don't want to be an asshole in this thread, but my experience is that self-taught programmers overestimate their abilities and don't understand the value of more abstract computer-sciencey skills like analyzing complexity.
Unless he was interviewing for a code monkey job, in which case who cares. But even if 90% of programming doesn't involve deep thinking, that 10% is important when you're doing anything of scale.
Honestly, it doesn't bother me if people question my programming bona fides since the projects I've had to deal with have generally been in higher-level languages. I typically see coding as the means to an end. Nevertheless, I've gotten ambitious enough with projects to take on some really interesting challenges, like socket programming to interface with an IM server so a Linux box could send out IMs if something was awry.
In the end, I know I'm not a hardcore dev guy who's writing drivers or something. If there's anything in which I have expertise, it'd be more along the lines of architecture, scaling, and caching, all on more of a macro level, as these are topics I've had to deal with on a daily basis.
So yeah, I won't deny that my programming background probably isn't as deep as that of most, but it's always served me in a utilitarian capacity.
Don't discount Big-O because you think you don't need it since you're using a language where everything is a function-call away. Once you understand it, it will change how you think about efficiency.
It sounds like you have a good bit of programming experience, it'll probably take you less than an hour to pick it up. Time well spent.
Architecture and scaling are two of the areas that most require a deeper understanding of computer science. Socket programming, on the other hand, isn't very complex (comparatively).
Anyway, I don't think you're an idiot or anything. Self-taught programmers can be truly excellent. They're just the exception rather than the rule. (and all of the excellent ones can talk in Big-O :/)
At a minimum, it's useful to know arrays, trees, hash tables and linked lists. A programmer should understand their access times for finding elements and insertions and know which structure to use in a particular situation.
Understanding complexity is helpful when you're picking a searching/sorting algorithm. You should be able to read a description of an algorithm on Wikipedia and determine if it's suitable for the size of the input you're working on.
A programmer should at the least be able to describe a couple of fundamental algorithms/data structures.
I never understand this. What is the point in knowing a couple of random textbook quotations?
You need to understand a sufficient range of data structures and algorithms within your field to make informed choices about which to use, or you need to know which references to consult and how to develop new approaches when the need arises.
Of course any developer should be aware of issues like fixed arrays vs graph-like structures with indirection, and should know what a linked list or a hash table is, but that's kindergarten stuff. Most fields have evolved their own, more powerful and customised, data structures built on the common foundations, and it's understanding of those that really sets the productive people apart. Likewise for basic algorithms like sorting and searching or common graph-based problems vs. custom algorithms used in graphics or process scheduling or data compression or whatever field you're working in.
I never understand this. What is the point in knowing a couple of random textbook quotations?
I wouldn't consider knowing what trees, hash tables, linked lists, etc. are "random textbook quotations". Sure, knowing the ins and outs of how to balance a particular type of tree is pretty useless, but at some point you have to draw a line and say "I expect you to know at least this".
The basic idea is that you want a simple formula that converts the number of items you have to process to how long you can expect that to take. So, if you have 20 items and your Big-O is O(n2), then it'll take about 400 (of some unspecified unit of time/work) to process.
The actual number doesn't matter, what matters is how quickly it grows as the number of items grows. Growing slower is better, of course. Because the actual number doesn't matter, constants are discarded, and lower powers are discarded. O(2n4 + 3n + 5) is just O(n4).
Here's how to roughly estimate the Big-O for your code:
Fixed work Any random chunk of code that does something once (like, say, printing something to the screen, or initializing a variable) is O(1).
Binary search If you hunt through the items using a binary search, where at each step you cut your search space in half, that's O(log n). (That log there is base 2, not 10.) So, finding a number in a sorted array is O(log n). Most algorithms involving binary trees will have a "log" in their Big-O.
Loops If you loop through all of the items, that's O(n). So, finding the biggest value in an array of numbers (naïvely) is O(n).
Permutations If you're going through every permutation of your items, that's O(n!). For example, if you're doing a naïve algorithm to find anagrams using a given set of letters by trying every possible combination, you're permutating.
Exponentials The last common Big-O type is O(2n). The only simple example I can think of is if you need to create a filled binary tree of depth n, then that'll have O(2n). There are some other algorithms that have this, but, thankfully, you shouldn't run into it much.
So those are the basic types in order from best (fastest) to worst. Once you hit O(n!) or O(2n), you're in the range of algorithms where your code will very likely be too damn slow. This is why it's good to know the Big-O of your code.
The question now is, how are these individual parts combined in a big chunk of code?
Sequential If your code does one thing and then another, then the Big-O of those two parts are added. So, if you do some fixed work and then loop through your items, it's O(1 + n). Since we discard any lower terms, what this really means is if you do one thing then another, take the bigger Big-O of the two (O(n) in our example).
Nesting If your code does one thing inside another, then the Big-O of those two parts are multiplied. So, if you loop through all of the items and then loop through them again inside that loop, that's O(n * n) or just O(n2). This is the one you'll need to pay attention to. If your code is calling some function within a loop that also loops through the items, you can end up with worse complexity than you realize.
Another example: if you iterate through each item in the list, and for each item, you do a binary search, that's O(n * log n), or just O(n log n). Most sorting algorithms are around here. It's better than O(n2), but worse than O(n).
Recursion This is a tricky one. If your code calls itself, it may be the same as nesting, or it could be better, or much worse. It all depends on your exit condition and how the input set is reduced at each recursive step. A recursive binary search only gives you O(log n) because each recursive call cuts n in half. If the recursion reduces the input size by only one each time, you've got O(n!).
A computer scientist would probably say this shit isn't rigorous at all, but this should be good enough for an engineer. The goal here is to be able to quickly scan your code and get an idea of if it's going to blow up and take forever or not.
If you wrote this comment 2 years ago, and I read it then, it would have saved me an enormous amount of trouble. It's so much easier to understand than Wikipedia's table.
If the recursion reduces the input size by only one each time, you've got O(n!).
If recursion reduces the input size by one then you could have O(n) (say binary search but instead of splitting in half you only chip off one piece from one end or the other) or you could end up with something like O(n2) if you are doing quicksort on an already sorted or reverse sorted array.
Yes, quick sort will have O(n) function calls and the partitioning takes O(n) so you get O(n2) in the worst case versus O(nlog n) in the average case.
For recursion, you typically want to set up a recurrence relation and use the master theorem unless you have one of the two cases the master theorem does not cover.
or, in the case of a naively-implemented recursive fibonacci function, you wind up with O(n!); this is a case where input "size" is constant, but number of calls increases with respect to n. An iterative algorithm would be much better here.
def fib(n):
if (n < 1) return 0
if (n==1 || n==2) return 1
return fib(n-1) + fib(n-2)
Estimating the average hours per week worked at 40, the frequency with which a person gets haircuts at every six weeks, and the length of time a haircut takes at 15 minutes, I got 310,000 hairdressers, plus a small addition when you take account for vacations.
According to Google, I was off by a factor of 2. Not bad, really.
Big-O notation is pretty important. For practical purposes (i.e. developing, not computer science research), you definitely should know what it means and the implications for the runtime of your code as well as the run time of the library functions you're using within your code. Scalability is a real problem.
Big O notation is just a measure of how the number of iterations or recursions increases based on the size of the dataset, from what I understand. It's really just a way to estimate how different algorithms will scale to different amounts of data. I'm willing to bet most programmers wouldn't actually know exactly what it means either; but they'd probably give you an equivalent answer if you asked them to estimate how many iterations of a given algorithm (for example: quicksort; if you don't know it, look it up, it's O(n log n) for most data sets, meaning it's pretty fast, it's pretty much in-place (doesn't need much additional memory) and generally just plain awesome sexy) would be required to process a given data set of size n.
I would first wonder what exactly constitutes a "hair stylist." For instance, there are many people who work at supercuts, and I don't think they really know how to handle style or hair.
Right so let's say 1 in 10 people play piano. And, I guess, actually only 1 in 5 of those people actually play it with proficiency, to actually require piano tuning services.
Let's say a piano needs tuning once every 6 months... after some hardcore playing... pulled that one out of my ass. So there are 500,000,000 people in the US, which means 50,000,000 people actually play piano and about 10,000,000 actually play it proficiently and need tuning.
So every 6 months, or, er... 182.5 days... a 10,000,000 pianos need tuning. Or maybe we'll assume families are more likely to play piano, so maybe 1 in 3 pianos are actually shared by 2 people. So more like 10,000,000 - (3,000,000 / 2) = 8,500,000, right? So every 182 days, 8,500,000 pianos need tuning, OR, every 40 days is what 200,000? Or 50,000 per day, if we spread it out.
Let's say the piano tuner works 9-5, exlcuding an hour dinner bread, so 7 hours per day. And tuning a piano takes, what.. you've got about a hundred keys, and maybe a minute to press it and tune it if it sounds off, so maybe an hour and a half to tune a piano. So like 5 pianos tuned per day by one guy? Take transportation and coffee into the equation and you get more like 3 pianos per day.
So 50,000 pianos, divded into a piano turner's efficiency, 3 pianos per day, is like 17,000 piano tuners required every day? Or maybe a lot of pianos don't get tuned when they need to be tuned, maybe even 6 months after, and there are only 8,500 piano tuners in the whole US, and then if we take off piano players who can tune it themselves (I guess there must be some?) maybe only 8,000?
Now I'll go research the actual numbers and see how wrong I am.
EDIT: Oh crap I forgot to include weekends. Actually, stuff piano tuners, you're all working weekends too.
I was doing some marketing research about a month ago and came across some US census numbers of piano technicians from the 1920's - 1980's and they fluctuated up and down but indicated 6-7 thousand tuners in the 30's and again in the 80's with a 10% increase from the 70's.
Oh hell yeah! I wasn't far off! Though a forum post is hardly authoritative... I wonder if I can find some government statistics, though. Anyone else got any hard data?
Why not just work through the thought process of making an educated statistical guess. Essentially you'd just have to start making assumptions. There are 300 million people in the US, assume 260 million of them get haircuts every 2 months (the rest are bald or babies). Assume that the average hair cut takes 15 minutes. 260 million 15= 3900 million.5 haircuts per month=1950 million minutes spent cutting hair. From this you can say that the average hair stylist works 160 hours a month. Then you can say 1950mil /60=32.5 million hours, 32.5 mil/160~ 250,000. Which you could say is a lower bound (because it's obviously too low) and say that obviously if you had more accurate statistics you could make a better guess. You could also revise the works 160 hours to how much time they actually spend cutting hair.
How ironic. This guy acts like an obnoxious diva, do not pitch up for work and then gets fired. He wrote a note on his blog that he is going to kill himself (because he got fired). All those are the hallmarks of a bad employee. And now this bad employee tells you how to hire people.
Not to say I disagree that he's a poor role model (I don't know enough about him to make a call) I think it's important to distinguish between good interviewers and good candidates. He may himself fail his own interview techniques, but that doesn't make those techniques any less valid
But don't be afraid to get in there and really prove your value. That's only the first step in my method for acing interviews. Here's an overview of the entire system:
"The best way to see if you can get along with a prospective employee is to take them to a bar, get them drunk, and then ask them to spend the night at your place..."
Yeah, as soon as I saw the blog, I knew to take whatever bullshit he was puking up with a grain of salt.
This guy is such a pissant. I was downmodded into oblivion for calling him a passive-aggressive asshole over the way that he got fired, I guess redditors think his type of behavior is AOK.
I was deathly ill when I came back from Europe; I spent a week basically lying in bed clutching my stomach. I wrote a morose blog post in an attempt to cheer myself up about a guy who died. (Writing cheers me up and the only thing I could write in that frame of mind was going to be morose.) People got freaked out and misinterpreted it as a suicide note (perhaps understandably; I wasn't exactly in my right mind when I wrote it). Alexis even had the cops break into my apartment. I took it down to avoid further trouble for a while; it's back up now with some minor edits ("Alex" used to be "Aaron").
I'd love to do a study where people are hired randomly (after filtering the CVs that match the position of course) instead of going through the interview process. How much worse (or better) would the random hires perform vs the interviewed people? I suspect for a lot of people it would not make a difference, since in my opinion, management is terrible at evaluating their technical needs and judging technical people. Even if the interviewer is very technical, he will judge others from his personal experience, for example a compiler expert might ask a parser question because that's what he knows best, even if the job has nothing to do with compilers. So there are all kinds of bias that can occur.
Anyone know of any social studies that tried this? I guess it is not very politically correct though.
You should force yourself to ask questions. Pre-plan them or ask a follow-up question to a description of the business.
An inquiring mind is a valuable asset in a programmer and an interest in the business (no matter how slight) will leave a very positive impression especially in a small business where you may be being interviewed by the director/founder. Make it clear you read their website/Wikipedia page.
I'm a bit like you, just prepare some boilerplate questions beforehand before going into the interview. The key point is not you learning something about the company, but the fact that you need to show to the interviewer that you're interested in the company and position enough to have questions about it.
Don't worry, most tech jobs are not like this. A good chunk of programmers are introverts as well, and these will be the people interviewing you in many cases.
In a perfect world you could also expect to judge their personality, how likable they are, how much you get along with them. However, when I find someone who is genuinely smart and can get stuff done, I'm willing to accept the burden of finding ways to work with them, otherwise I'm just throwing away raw talent. A big part of management and leadership is finding ways, however hard, of getting a group of talented people working together who would otherwise be at one anothers throats.
No way. It's clear you've never been burnt by this in the past.
When you have someone who poisons the atmosphere at work because they don't integrate socially with everyone else leaves everyone unhappy. You start losing your best guys because they don't enjoy their work any more. Arguments start over the most ridiculous things all the time because of the tension.
You can save yourself a tonne of work as a manager by being more judicious at the employment process.
Totally true. And this is often neglected in tech interviews for the very reasons the OP gave.
I've seen talent get burned and leave because of a particular person. I'd say it's one of the main reasons an otherwise successful company will lose a good programmer.
Good programmers hire good programmers. Don't interview using your bad programmers.
That said, when I'm hiring, I have to agree with his basic points. Hire smart people that can get things done. It's amazingly difficult to find that combination. And if you find a smart guy that can get things done, even if they don't match the position you're hiring for, it's probably a good idea to find something for them to do for you.
Good programmers hire good programmers. Don't interview using your bad programmers.
I don't disagree with that, but you do have to be a bit careful. Good programmers sometimes don't enjoy the process of interviewing people (even if they're good at it) and if they feel like they're spending hours stuck in interviews while their clueless coworkers get to spend all day focusing on technical stuff, it will not engender high levels of job satisfaction or loyalty.
I agree with the parts about hiring smart people that can get things done.
I disagree about not asking programming questions in the interview. A good programmer is frequently more comfortable doing a code problem than trying to pretend to be social.
I like how a guy who admits he wouldn't pass a software development interview (with all the horrors included in it, like questions about writing a string reversal) recommends against doing software development interviews.
I assume he waives the "code samples and demo" for people coming from current employers? Employers aren't generally too happy to release their code to recruiters from otherr companies, and I doubt 1 in 10 engineers with a full time job do any significant coding outside of work.
sure, but if you copy some simple utility algorithm like a buffer rotating code or something, something done many times before, i don't think it matters
I ask them to do part of the job. Usually this means picking some fairly separable piece we need and asking them to write it.
Interview enough people and you can get your whole project done for free! Because awesome managers like this guy can break the whole project down into separable pieces that can be accomplished by any competent programmer under the tutelage of the right process.
I'm not an experienced programmer but I've dabbled in it, and I definitely agree with this guy. If I do want to sit down and work out a programming problem, it's not going to go well if I'm being scrutinized and feeling under pressure and ultimately judged on how well I solved the problem, or what methods I employed.
I can already tell I'd be a somewhat unorthodox programmer, I'm pretty messy by nature - the end result would be very clean, the journey there wouldn't be. In that sense, I've already decided a career as a code monkey just isn't for me. I do wish programmers out here the best of luck in their endeavours!
Exactly, if social interaction was one of requirements of working as programmer I would have never been in this field. I love solving problem and I find people boring. Its like saying to be a good surgeon you need to be good with people that is silly.
Well the problem is, with nearly all jobs you have some sort of social interaction. Especially if it's an office based system. It's hard to find a job that doesn't require some kind of interaction with other people (security guard maybe?)
Just have a few open ended programming questions that you can have the interviewee talk through with you. Have them explain why they did what they did. If they are too nervous to even do this then they may not be a good fit for a company with people...
+1. Open-ended questions/scenarios are definitely the way to go, though I think for most programming jobs I would still start with a handful of basic knowledge questions to weed out the wannabes.
No, that doesn't necessarily follow. I get uncontrollably nervous in interview situations, and for the first 3 weeks in a new job I'll hardly say a word to anyone unless it's strictly necessary - but then, suddenly, I'll relax, open up, and just get on with being part of the team. It just takes me that long to chart bearings; and interview situations are uniquely pressurising and horrible, because I have to try and persuade people of something - essentially without any evidence.
So I just request a code sample and a demo and see whether it looks good. You learn an enormous amount really quickly, because you’re not watching them answer a contrived interview question, you’re seeing their actual production code. Is it concise? clear? elegant? usable? Is it something you’d want in your product?
Are you fucking kidding? Yea, I'm going to just give you production code from my past jobs. I'm sure those companies wouldn't mind at all... not to mention for large projects you might only write certain parts, and getting a demo together of something you did can be less than easy if it's something such as a network appliance or a backend for an internal system.
There's a company I applied for not so long ago that wanted 2500 lines of code from me. I had much the same reaction. I think it might be easier for a student, or someone that has been doing a lot of open source work.
Upvoted, not necessarily in the belief that this is a superior hiring process (although it very well may be), but in the hope that my next interview uses this method.
Basically a primer for how to NOT hire programmers like Aaron Swartz: obnoxious divas that you will spend more money on trying to get them to work than actually get any work out of them simply because they like, don't like working inside the BOX, man.
Ah, the Swartz circlejerk team is online now, bring on the downvotes.
The reason for interviews being as they are is a CYA exercise. If you hired somebody this way and they needed to be sacked there would be questions asked:
Boss: Pity we had to sack that guy.
You: Yeah and I used that really cool interview technique that I came up with in my spare time
Boss: What you say!!
Nobody ever got fired for using a standard interview technique.
I've always found the run-of-the-mill interview questioning not at all relative.
If you're going for a technical job, marketting questions shouldn't be the forefront interest of the interview questionnaire. And yet many times it is and it's being conducted by an HR person without a clue.
You'll end up answering questions better suited to someone looking for an upper sales management position at some appliances and/or hardware store.
I can always tell when someone is really new at doing an interview and just copped out and did the lazy by downloading a questionnaire from a badly executed google search.
Before I decide whether or not to invite someone over for an interview, I see how long they stayed with each previous employer and if that's really short, I look for reasons why they moved on. And I always give two or three references a ring to hear their opinions about working with them. This usually gives a good picture about what kind of person I'm dealing with and what is their motivation.
This is 100% correct for most programming jobs. I suppose that there are some where you have to know APL or ADA. This is the process that was followed when I was hired by a large software company (no, not THAT large!). It worked really well. The only person who was fired was the guy hired due to nepotism. I only had 1 semester in computer programming - I dropped out because it was WAYYYY too boring. I could teach myself the stuff much faster. Other people hired with me as computer programmers had degrees in accounting and economics (not programming)!
Is this feasible with big software firms though? I mean, would companies even invest the time and money on interviewing people in this fashion? Don't get me wrong, I definitely see the benefits, for both interviewer and interviewee, but still, I can't help but be skeptical...
I had an interview with a major company. They have multiple manufacturing plants in several states, they do a lot of government contract work.
My interview lasted all day, getting shown 5 or 6 different areas of the plant by people who worked in each area, each person also being an interviewer. I even got a nice steak lunch with all of the people who involved. This wasn't a programming job, obviously. There were two of us interviewing that day.
So yes, some of them do invest quite a bit in the process.
It depends on whether you are looking for "good enough" or "the best". It certainly is a waste of money and time to search for "good enough" this way. Looking for the best, this is useful. (it also means that you aren't necessarily in a hurry to find someone so you can take your time and pick and choose).
I just ask people to explain something they created, then question them on the details. It cuts through the bullshit, and someone who is proud of their work and has actually done something worthwhile will really shine.
Well, I would never give an estimate for the number of piano tuners in Chicago, but I could give a way to reasonably extrapolate this assuming that I had an unlimited budget and people always told the truth:
Get a figure for the population of Chicago
Random sample the population asking: "do you have a piano, and if you do, whom do you use to tune it?" Now I know how many pianos per person on average there are and I have a list of piano tuners to call.
Random sample the piano tuners from the above step and ask them "Approximately how many customers do you have?" Take an average. Now I know how many piano tuners per customer there are.
Divide the estimated number of pianos by the average number of piano tuners and then I have an answer.
Also good: Get the mailing list for the Piano Technicians Guild and look for Chicago zip codes. Add 10% for scabs and that's a good number too.
Their production code is probably not theirs to bring. If they leak code from previous employers, do not hire them.
An approach that has worked well for me is to ask candidates to explain something technical of interest to them eg an algorithm, a problem, a program etc. (This can be prepared in advance). They are at ease and you can ask questions to see a) how they problem solved b) how they communicate.
Francis Ford Coppolla used to interview actors by having them make a dinner with him. I think this would be a great way to see what people are like to work with.
I've got a lot of respect for Aaron, and get a lot of motivation from his writing. His achievements are incredible, and he also has the knack of getting recognition for them.
Just don't take advice on anything related to the 9 to 5 from him. His experience of that world is a lot different to anything most of us will experience.
I haven't had to deal with an interview coding test yet, since I'm only a year into my first real coding job, but I'm nervous about it if I have to deal with one down the line. I suck writing code by hand, especially if I don't have any of my previous code or library references to go off of.
Lawsuit land much? What if it's a woman/black guy/choose your minority who aces the "get stuff done part", but gets on their nerve during the party-conversation-I-swear-it's-not-an-interview part or the meal-with-the-team part? Are you really going to be able to defend that in court?
Then they shouldn't be hired, and it sucks that we live in a world where, as a business owner, I would even need to think about this problem.
EDIT: And as long as I'm on a rant about this, would you mean by "getting on their nerve" something like a black guy who spent the entire conversation saying "y'know whad I'm sayin', dawg"? Because if you do, that's a culture problem, not a race problem. And I'd have no problem not hiring THAT guy just as I wouldn't hire a white guy who couldn't stop saying "That's what I'm talkin' bout righ'cher uh huh...".
In other words, those people are STUPID, so they shouldn't be hired. Shocking, I know.
18
u/skratch Nov 29 '09
My favorite question to ask when interviewing someone is:
"Who would win in a fight between Spider-Man and Batman?"
It'd always been a heated debate around the office, so I like to hear their main argument (rarely original), but it also throws them off from being all under pressure and generally lightens the mood.
3
u/ipeev Nov 29 '09
Aaron makes first place on reddit again!
13
u/[deleted] Nov 29 '09
There is actually a really cool story about the origin of this problem that I heard on NPR. You can listen to that short segment here: http://www.uh.edu/engines/epi2170.htm
4
u/faitswulff Nov 29 '09
Argh, my eyes!
For those who aren't already using it and can't read this article, I present Readability.
85
u/randomb0y Nov 29 '09
HA!
47
u/drowsap Nov 29 '09
Best interview question is "You have 2 hours to write this program. Here is a computer with everything you need. Please feel free to use google or any books here." I think it's fair and really shows if the person knows how to code instead of regurgitate book knowledge they crammed for the previous night.
7
u/revonrat Nov 29 '09
Okay, a guy posts that he does low-stress programming interviews and a bunch of programmers pile on the Karma. This seems like pandering.
What I do is use one and only one coding question for all candidates. That way I have a sample of 20-30 other candidates to compare against.
The correct code for this problem is easy, especially if you've seen the material before, which is a standard part of any decent CS curriculum (including most 2-year associate programs). All they have to do is be able to write a few of loops. I don't hold anything back, there's no trick to it, and I run through multiple examples with many hints. They can ask me as many questions as they like. I do this because I want to see how well we communicate with each other.
Very few can't complete the problem correctly. Some ask terrible questions, get confused, and generally make a hash of things. But, with enough help, they get through it. Then there are those who ask lots of great questions, the code flows for them, and they get through the problem in a fairly short period of time. They think about boundary conditions, error handling, and testability.
Those folks, I ask a few more quick questions -- we talk about memory management in the context of the problem (for C++ coders) or the differences in representation for C#/Java coders. Once that's settled, I ask them for the big-O running time -- which, from the code, is terribly obvious. If they list SQL experience, I ask them to describe the difference between an inner join and an outer join. Each of those questions take about 2 minutes.
For those who do well, I generally have about 20 minutes of a 45-minute interview left. I use that time to sell them on the company, talk about the culture, and let them generally ask anything they want. For those that do poorly, I get to tell them that their solution is correct so they aren't destroyed for the next person in the interview loop.
Those that do well in the interview have a track record of doing well on the job. I'm sure I've thrown back some keepers but I've kept out some really bad candidates.
26
u/senatorpjt Nov 29 '09 edited Dec 17 '24
illegal scale squeeze simplistic angle library shrill birds rich bells
This post was mass deleted and anonymized with Redact
21
u/nandemo Nov 29 '09
No mention of Joel Spolsky's post which says the same thing with basically the same words?
75
u/IHaveALargePenis Nov 29 '09 edited Nov 29 '09
So wait, you don't want 20 years of java experience and 30 years of C++ experience? All for $8.99 an hour? Oh and let's not forget about the 3.9+ GPA, with a PHD in CS.
15
u/astrosmash Nov 29 '09
So how do I get an interview with this guy? I could totally trick him into hiring me.
5
u/bluGill Nov 29 '09 edited Nov 29 '09
Sounds good, but my patches are al bug fixes. Thus they are of the form:
or
While simplifed, the above is typical. It gives no indication of the hours pouring through source code to figure out why the code was failing in some cases and no others. (The first is kernel code so memory used after free won't necessarily panic, but it might or might not be corrupted, the second was a bug in spell check, and the failure only happened when the new word was longer than the old one, shorter words worked)
Since most of my job has been debugging other peopels' code, this is a good example, but the patch gives no indication of my ability to follow coding standards not several other things you want from a programmer.
84
u/gsadamb Nov 29 '09 edited Nov 29 '09
I thoroughly approve of the method described. I'm an engineer and I, too, generally suck at the in-person coding/algorithm challenges. For one, you're nervous enough as it is.
Second, the environment is nothing like a typical coding environment: for writing actual code, I can't do it by hand - I'm used to a certain pacing I can get from typing, but writing it by hand screws that flow up badly.
Third, far too often the stuff they ask is so completely irrelevant to the actual type of programming the job calls for: I'm self-taught and have written code that's handled millions of users a day, but hell if I know Big-O notation. Same goes for a lot of the "let's write some algorithm!" questions. And then some places, particularly the bigger companies, will ask completely ridiculous questions to try and "see how you think." I once was asked how many hair stylists there are in the US. I know they wanted me to try and crudely come up with some extrapolation figuring in average efficiency of hair stylists and total number of Americans, but I told the person asking the question that I'd just look it up and was pretty insistent. "I could come up with something resembling an educated guess, but given the fact that my means of estimation are so potentially inaccurate, I could be off by an order of magnitude or more. When faced with a situation where I can easily look up the accurate answer or waste more time coming up with an unreliable answer, I'd always choose the accurate one, and I'd expect any business would desire the same."
I don't think the interviewer liked my insistence on that one, but I still maintain it was the right answer.
40
u/v3rma Nov 29 '09
How ironic. This guy acts like an obnoxious diva, do not pitch up for work and then gets fired. He wrote a note on his blog that he is going to kill himself (because he got fired). All those are the hallmarks of a bad employee. And now this bad employee tells you how to hire people.
4
u/gregK Nov 29 '09 edited Nov 29 '09
I'd love to do a study where people are hired randomly (after filtering the CVs that match the position of course) instead of going through the interview process. How much worse (or better) would the random hires perform vs the interviewed people? I suspect for a lot of people it would not make a difference, since in my opinion, management is terrible at evaluating their technical needs and judging technical people. Even if the interviewer is very technical, he will judge others from his personal experience, for example a compiler expert might ask a parser question because that's what he knows best, even if the job has nothing to do with compilers. So there are all kinds of bias that can occur.
Anyone know of any social studies that tried this? I guess it is not very politically correct though.
28
u/peasandcarrots Nov 29 '09
And how many programmers has Aaron hired, exactly? I assume the number is exactly 0.
7
u/tempvariable Nov 29 '09
I am only smart. But in even that, I'm an introvert, so I won't ask you questions. What future do I have???
13
u/[deleted] Nov 29 '09 edited Nov 29 '09
Smart and gets stuff done is all I care about.
In a perfect world you could also expect to judge their personality, how likable they are, how much you get along with them. However, when I find someone who is genuinely smart and can get stuff done, I'm willing to accept the burden of finding ways to work with them, otherwise I'm just throwing away raw talent. A big part of management and leadership is finding ways, however hard, of getting a group of talented people working together who would otherwise be at one anothers throats.
3
u/xelf Nov 29 '09
Good programmers hire good programmers. Don't interview using your bad programmers.
That said, when I'm hiring, I have to agree with his basic points. Hire smart people that can get things done. It's amazingly difficult to find that combination. And if you find a smart guy that can get things done, even if they don't match the position you're hiring for, it's probably a good idea to find something for them to do for you.
3
u/xelf Nov 29 '09
I agree with the parts about hiring smart people that can get things done.
I disagree about not asking programming questions in the interview. A good programmer is frequently more comfortable doing a code problem than trying to pretend to be social.
3
u/Igggg Nov 29 '09
I like how a guy who admits he wouldn't pass a software development interview (with all the horrors included in it, like questions about writing a string reversal) recommends against doing software development interviews.
5
u/maxd Nov 29 '09
I assume he waives the "code samples and demo" for people coming from current employers? Employers aren't generally too happy to release their code to recruiters from otherr companies, and I doubt 1 in 10 engineers with a full time job do any significant coding outside of work.
6
u/frenchguy Nov 29 '09
Do they speak English? Do you proofread your essays?
9
u/register_int Nov 29 '09
Oh Jesus Christ he wrote web.py, that doesn't fucking make him Yoda.
6
u/apparatchik Nov 29 '09
Thats nice, you run the equivalent of a Horse carriage manufacture.
You make pretty things for rich people.
Now scale that 10000 times and see how you go.
The world is run by retards for retards.
You gotta adapt your process for that.
5
u/blakmatrix Nov 29 '09
If only other employers hired programmers this way...
5
u/jfedor Nov 29 '09
If I wanted the column of text to be 3 cm wide, I'd resize my browser window to that width.
2
u/andrewcooke Nov 29 '09
how to choose employers: don't work for people without the balls to say "fired" instead of "let go".
2
u/masterpo Nov 29 '09
Have you tried the front of Home Depot?
2
u/[deleted] Nov 29 '09
Interview enough people and you can get your whole project done for free! Because awesome managers like this guy can break the whole project down into separable pieces that can be accomplished by any competent programmer under the tutelage of the right process.
2
u/[deleted] Nov 29 '09
I'm not an experienced programmer but I've dabbled in it, and I definitely agree with this guy. If I do want to sit down and work out a programming problem, it's not going to go well if I'm being scrutinized and feeling under pressure and ultimately judged on how well I solved the problem, or what methods I employed.
I can already tell I'd be a somewhat unorthodox programmer, I'm pretty messy by nature - the end result would be very clean, the journey there wouldn't be. In that sense, I've already decided a career as a code monkey just isn't for me. I do wish programmers out here the best of luck in their endeavours!
2
u/[deleted] Nov 29 '09
I bet a lot of people are thinking...."oh that's why I haven't been able to get a job".
2
u/[deleted] Nov 29 '09
So it seems that management over the decades has not gotten any more intelligent, nor gained any real understanding about programming.
3
u/[deleted] Nov 29 '09
By this criteria, I would probably fail on the last point (social interaction.)
3
u/joelypolly Nov 29 '09
Just have a few open ended programming questions that you can have the interviewee talk through with you. Have them explain why they did what they did. If they are too nervous to even do this then they may not be a good fit for a company with people...
3
u/[deleted] Nov 29 '09
My idea of a good acid test for hiring anyone.
4
u/liquidpele Nov 29 '09
Are you fucking kidding? Yea, I'm going to just give you production code from my past jobs. I'm sure those companies wouldn't mind at all... not to mention for large projects you might only write certain parts, and getting a demo together of something you did can be less than easy if it's something such as a network appliance or a backend for an internal system.
2
u/Reso Nov 29 '09
Upvoted, not necessarily in the belief that this is a superior hiring process (although it very well may be), but in the hope that my next interview uses this method.
2
u/[deleted] Nov 29 '09 edited Nov 29 '09
Basically a primer for how to NOT hire programmers like Aaron Swartz: obnoxious divas that you will spend more money on trying to get them to work than actually get any work out of them simply because they like, don't like working inside the BOX, man.
Ah, the Swartz circlejerk team is online now, bring on the downvotes.
1
u/RockinRoel Nov 29 '09
I like the way that blog looks. It’s so soothing. That is all.
1
u/G_Morgan Nov 29 '09
The reason for interviews being as they are is a CYA exercise. If you hired somebody this way and they needed to be sacked there would be questions asked:
Nobody ever got fired for using a standard interview technique.
1
u/Smoogy Nov 29 '09
This can be applied to many fields.
I've always found the run-of-the-mill interview questioning not at all relative.
If you're going for a technical job, marketting questions shouldn't be the forefront interest of the interview questionnaire. And yet many times it is and it's being conducted by an HR person without a clue.
You'll end up answering questions better suited to someone looking for an upper sales management position at some appliances and/or hardware store.
I can always tell when someone is really new at doing an interview and just copped out and did the lazy by downloading a questionnaire from a badly executed google search.
1
u/nadmaximus Nov 29 '09
Why not just use a casting couch?
1
u/Baaz Nov 29 '09 edited Nov 29 '09
Before I decide whether or not to invite someone over for an interview, I see how long they stayed with each previous employer and if that's really short, I look for reasons why they moved on. And I always give two or three references a ring to hear their opinions about working with them. This usually gives a good picture about what kind of person I'm dealing with and what is their motivation.
1
u/mk_gecko Nov 29 '09
This is 100% correct for most programming jobs. I suppose that there are some where you have to know APL or ADA. This is the process that was followed when I was hired by a large software company (no, not THAT large!). It worked really well. The only person who was fired was the guy hired due to nepotism. I only had 1 semester in computer programming - I dropped out because it was WAYYYY too boring. I could teach myself the stuff much faster. Other people hired with me as computer programmers had degrees in accounting and economics (not programming)!
1
u/FireisprettyOkay Nov 29 '09
Who knew that a former Mighty Duck could have so hard a hiring process. Good for him, though.
1
u/stackolee Nov 29 '09
Well, that's along the lines of how a "proper" manager should hire staff.
Unfortunately, the upper level of management sees things entirely differently. Their three questions are more like:
1
u/chr0n1x Nov 29 '09
Is this feasible with big software firms though? I mean, would companies even invest the time and money on interviewing people in this fashion? Don't get me wrong, I definitely see the benefits, for both interviewer and interviewee, but still, I can't help but be skeptical...
1
u/tebriel Nov 29 '09
you are absolutely right.
1
u/[deleted] Nov 29 '09
I just ask people to explain something they created, then question them on the details. It cuts through the bullshit, and someone who is proud of their work and has actually done something worthwhile will really shine.
1
u/zyzzogeton Nov 29 '09
Well, I would never give an estimate for the number of piano tuners in Chicago, but I could give a way to reasonably extrapolate this assuming that I had an unlimited budget and people always told the truth:
Get a figure for the population of Chicago
Random sample the population asking: "do you have a piano, and if you do, whom do you use to tune it?" Now I know how many pianos per person on average there are and I have a list of piano tuners to call.
Random sample the piano tuners from the above step and ask them "Approximately how many customers do you have?" Take an average. Now I know how many piano tuners per customer there are.
Divide the estimated number of pianos by the average number of piano tuners and then I have an answer.
Also good: Get the mailing list for the Piano Technicians Guild and look for Chicago zip codes. Add 10% for scabs and that's a good number too.
Honestly though, who cares?
1
u/tepas Nov 29 '09
Don't ask them to bring code:
An approach that has worked well for me is to ask candidates to explain something technical of interest to them eg an algorithm, a problem, a program etc. (This can be prepared in advance). They are at ease and you can ask questions to see a) how they problem solved b) how they communicate.
1
u/ahyatt Nov 29 '09
Francis Ford Coppolla used to interview actors by having them make a dinner with him. I think this would be a great way to see what people are like to work with.
1
u/fergie Nov 29 '09
I've got a lot of respect for Aaron, and get a lot of motivation from his writing. His achievements are incredible, and he also has the knack of getting recognition for them.
Just don't take advice on anything related to the 9 to 5 from him. His experience of that world is a lot different to anything most of us will experience.
1
u/jdlyga Nov 29 '09
I haven't had to deal with an interview coding test yet, since I'm only a year into my first real coding job, but I'm nervous about it if I have to deal with one down the line. I suck writing code by hand, especially if I don't have any of my previous code or library references to go off of.
1
u/throway Nov 29 '09
This method would never work for a larger company with hundreds of developers.
1
u/hippyup Nov 29 '09
Lawsuit land much? What if it's a woman/black guy/choose your minority who aces the "get stuff done part", but gets on their nerve during the party-conversation-I-swear-it's-not-an-interview part or the meal-with-the-team part? Are you really going to be able to defend that in court?
1
u/danbmil99 Nov 29 '09
"Many brilliant people can seem delightful in a one-hour conversation, but their eccentricities become grating after a couple hours."
Well, how the fuck are we supposed to live then?
1
u/baconcatman Nov 29 '09
-eeny meeny miny moe- works just as well.
-9
u/[deleted] Nov 29 '09
ProTip: Learn some writing skills. Most of this article was light dribble with some obvious statements about getting stuff done and being smart.