PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Interviewing coders...

Hello.

I'm interviewing some coders next week, and I was wondering what (technical) questions people thought I should ask them.

The job is doing "business application" development, using (amongst other things) UML, .NET (C#, VB, Crystal Reports) and Oracle.

I have 30mins for their test.

Really I want to know if they can really "do" OO rather than just knowing language syntax. I'm not sure how to ascertain this..

Ideas appreciated.

Cheers,

Ref.

(It shows how crap the market is when we advertise a low-level job with shitty pay in Europe and get 100 CVs .. including one from Madagascar?!).
ask them if they think Crystal Reports is a great program. If they do, send 'em home immediately :)

Now seriously; what i do to check if the force is strong inside a coder is to have them send me some OO code from something they have written in the past before the interview. Then i check the code, and make up a question regarding a change in their code that involves OO techniques. Now, when they show up for the interview, i let them do that little change in their own code and explain it.

It's not a perfect approach, but better that asking "do you know what polymorphism and inheritance is?"

If you had more time i would strongly recommend that you let some team members talk to the newbie, as its very important that these people can work together. The aspirant has fo "fit" into the team.

cryo
On Crystal ask them if they have used the web components on Crystal 9 & or Crystal 8 ( there are big differences ). If they don't use Crystal 9 already then they will need some re-training.
They need to understand how Crystal puts together SQL statements & how to do sub reports.

don't forget the non-technical areas like documentation and team working as these are just as important. They could be a really great oo coder but unable to write maintainable code and work in a team.

With only 30 minutes to question them you also need to read their CVs re: existing experience & take up references. I have interviewed many people who talk a good talk but get bad references.
The problem is that due to the truly bizarre hiring "policy" here, I haven't even seen their CVs yet... and the interviews have been booked by the HR department, so I can't ask them for code.

I definitely don't want to do a cold "What is inheritance? What is polymorphism?" test, because that's just pointless; I could answer those questions in my sleep years before I could actually design a "proper" OO setup with reasonable responsibilites assigned.

As for fitting into the team, that "team" is, at the moment, just me. They're being employed to help me develop a framework for a modular application and do lots of technical leg-work that I'm too busy to do.

I'm wondering whether it's better to find somebody fresh out of Uni. and train him in (my particular) ways of OO - or whether I hope and pray that there's a candidate who knows what he's doing enough to beat me into shape ;)

Most people that I've met that say they can "do" OO, can do the code syntax but not design the structuring/hierarchy (including myself in that, to a certain extent).

The irony, of course, is the person who'd be my first choice was fired a couple of weeks ago while I was on holiday. :evil:

I'm really struggling to think up examples of "bad" "OO" design for them to "fix" :(

Cheers,

Ref.
With only 30 minutes to question them you also need to read their CVs re: existing experience & take up references.


I have an hour for each. 15 minutes chat about their CVs, 30 minutes test, 15 minutes chat about their answers and their questions. (I'll have two on the go, staggered to start every half hour).

The HR department/director has followed up references already (and done the preliminary interviews and subsequent "weeding" of the ones the director didn't like).
Pam · 05 Jun 2003, 13:58 UTC — Interviewing coders...
refractor wrote:
The job is doing "business application" development, using (amongst other things) UML, .NET (C#, VB, Crystal Reports) and Oracle.


I've interviewed a few people for similar positions. One thing I've tried is to give them a (relatively) simple scenario/problem and give them 5-10 minutes and a white-board to draw a UML diagram showing their idea for a class heirarchy and interactions to solve the problem. Then I come back and ask them to describe/justify it to me.

From this you can see how well they understand OO and UML, how well they communicate, how well they handle criticism, and how aggressively they attack a problem.

It can be a pain sometimes to come up with a decent scenario that can be discussed in such a short time.

Personally, I've found it much easier to hire people that have a good OO, excellent communictation, and ability to learn. If they have that, I can teach them the particulars of the job.

Pam
Not to be the voice of decent...but I tend to disagree with almost all of this.

I have hired and fired pleanty of programmers in my day...no to mention the hundreds of interviews I've been on EVEN AFTER I GOT THE TITLE CTO!

Anyhoo...I do have a point so I'll get to it.

Asking a question to which the answer can be found in the MSDN or a book is useless. One can assume that no one remembers everthing, and they know how to read.
Logic tests are ok, but a bit unfair and somewhat degrading to the person you are interviewing.
Asking for the definition of polymorphism or binary compatibility is ok, but also hard to do because you will either ask something so common that EVERYONE knows the answer, or something uncommon enough that a skilled programmer might not know the proper answer.

In my experiences, I have tended to have the person give me an ad hoc rundown of their experience, with some tangible things they have developed and why they thought they were good or bad.

I have also asked questions which I know they couldn't answer, specifically to see how they reacted...like say "Why would one use the virtual keyword on a destructor in C++?" You either know or you don't...and you probably don't...and if you do you are probably to smart for this position.

The truth of all of this is simple. There is no way to know who you are hiring until you hire them. Read the resumes, check the references and chat with them casually about code and personal work ethics. That's the best feel you are going to get.
Ask them if they like UML and if they say "no" at least you know they are smart AND honest. :)

You're gonna have a tough time finding people with real-world experience with .Net btw...at least its tough on the East Coast. Heh...ask them what #region does.
angedelamort · 06 Jun 2003, 13:18 UTC
I have to agree with MeumSimulacrum. But, my way of doing interview is asking about the work they have done (normally on CVs) and asking more specifics informations about it. If you find him to hesitate about his own works... that's not a good sign. Doing this, you know how can he communicate and his skill in programation. Viewing some of his code could be interesting too, to see how he works. I think it's not a good way to bother about the tools. But in your case, having knowledge in C# and VB looks like that he should know how to use .Net and databases ^_^

Also, It's not because they know about UML that they really know How to use it. It need a lot of OO experience to be able to use UML efficiently. MeumSimulacrum told also about really difficult questions. I think it's a good thing too. You can easyly see how a programmer can react when he face a new situation and how logical he can be. For example, myself in my first interview, I was asked if we could have a private default constructor? After some thinking and speaking, I was able to answer the question. It takes me some time, but even if the answer is wrong, it does'nt means that he's not a good element.

Another important part, is your instinct :P If you feel that the person does not fit the job even if he's good, I think you should follow what you feel.


Have fun with your interviews ;)
/adlm[/quote]
Just please don't ask them "Why are man-hole covers round?". Worse, if you do ask them that, then you had better not think the best answer is so they don't fall through the hole.

Dan East
Hey Dan, that's the answer I always thought was right. What's the real answer? Is it because man-holes are round?

Back on topic - in my experience (another CTO here) there's just no clear-cut way of getting a good feel for a candidate in a brief interview. As mentioned, programming tests are no real indicator as most good coders keep a library of books/help files for 'offline-storage'. Asking them for experience of reference resources such as MSDN etc might be more worthwhile. I usually ask whether they have a personal MSDN subscription, what the names Petzold and Knuth mean to them, and what's their most heavily thumbed reference book. Mind you, I usually get them to produce a very simple (approx 20 lines, usually a flat file import) program using our coding standards to make sure they are capable of quickly adapting to a team style.

Asking about previous projects is modertely useful, but if they offer to send you the source, this rings alarm bells with me - you can't readily pluck out a bit of code from a large complex and integrated system: it can indicate that they've only had a minor role developing some standalone part, or their previous systems have been quite simple.

I find that usually a good hour or so 'chat' about technology, the system architectures and develpment frameworks they've experienced, the joys of developing, gadgets and other geeky stuff usually indicates whether the candidate can communicate well and fit in with our team.

But by far the best advice I can give is to only ever employ with an initial three month probation period. After 3 months, you can finish with them if they don't fit in or can't do the job well.
Uh ... Knuth and Petzold ?

Rather strange combination - a noted computer scientist with a technical writer mainly known for his extensive coverage of Win32 API ( an api that couldn't be further away from what in CS circles stands for a well designed programming interface.)

;-)
JFTR, I'm CTO too (for about a week so far). However, the last time I properly interviewed people was (eeek!) 8 years ago. I'm a techie; I've really not had much experience in matters HR.

I have also asked questions which I know they couldn't answer,


I certainly plan on doing that one. I'm a big fan of seeing if people can think on their feet.

I have to give them a test. The director/owner/"God"/dictator has spoken and so it must be done.

Essentially, I'm a .NET "newbie" too; so experience would be useful, but isn't essential, IMHO. I need to find out if the guy we're hiring can help build an application framework (there are *loads* of things that the application needs to incorporate - modularisation, internationalisation, multiple database connections and types, file import and export, reporting, etc, etc).

The main thing is that I'm after somebody who can design real-world stuff effectively, rather than a code-monkey who needs spoon-feeding (from my busy and none-too-brilliant spoon).

However, I've now seen the CVs, and I'm 95% sure I'm up a certain creek without a paddle. As an old boss of mine said, "pay peanuts, get monkeys".

The test will be a brief-answer, more "academic" style of questions - more "when/why would you do this"/"list pros and cons for these two approaches" than "what is/are" questions.

I'll try and knock up some samples over the weekend and post them here for you guys to pick at (I appreciate all the input, by the way, thanks :)).

(Major irony alert - I'm interviewing people next Wednesday all day, and Thursday morning ... and I have a job interview for myself at the end of next week ;) - it's a cut-throat world, business :twisted: ).
"Rather strange combination" -- wami

- Absolutely ;) - Note, I suggested asking what the authors meant to them, not that they should think the authors are any good in a practical environment. Your comments about Petzold are exactly what I would look for, and would show understanding and experience of the fundamentally horrible, but here to stay, windows API. Knuth indicates that they've go an interest in pure computer science or they have a bizarre fetish for pseudo-assembly languages. So Practical + Theoretical sides of the same coin. Both are pretty much useless from an OO point of view.

Re-reading the original question - Refractor was actually asking for a test to see if the candidate can use OO in real word situations, so I guess my comment was totally off the point! Unfortuantely I can't really think of any suggestions for this, other than getting them to code up something simple but highly OO such as implementing a particular interface using a small framework of classes. But that requires a fair amount of work to prepare.
Or maybe something along the lines of where and why you might encounter ambiguous inheritance (the common ancestor problem), and how you could resolve it?
Regarding the man-hole (and perhaps other logic problems), I feel the publicized answer is so poor that it may be purposefuly misleading. If a person answers "so it will not fall into the hole", then it may indicate that they have already heard, and know the expected answers to, logic problems, as opposed to actually devising a solution on the spot.

I haven't taken the time to actually create a proof, but any regular polygon with an odd number of sides cannot fall through its own hole (of course the lid should have a lip). Obviously a triangle cannot fall through its own hole. The longest line disecting a triangle is from one vertex to another, which corresponds to the widest part of the hole.

So since that answer is not unique to a circle, it is an incredibly poor answer. If that is the logic one wishes to prove, then a better question would be "why are man-hole covers not square" - "so they don't fall through their own hole".

Two much better answers I've come up with, which both pertain to the real-world use of man-holes are:

Man hole covers are very heavy. If they are round then a single person can easily roll them around instead of having to carry them. This provides a safer working environment, requires less man-power, and is less likely to lead to stress injuries.

Since man hole covers are heavy, it is much easier to fit them into place when their is no special orientation between the cover and the hole. Thus one can simply slide a man hole cover over its hole and it will fall into place - only if it is circular.

Both of those answers are completely unique to circular covers. If I asked that question, and someone provided one of those two answers, I would be impressed to some degree.

Oh, and if someone says "Man-hole covers are round because man-holes are round" then they have heard the question before.

One last piece of trivia. Supposedly that question, like most logic interview questions, arose from Microsoft. The man-hole covers on the Microsoft campus are not round.

Dan
Regarding testing their knowledge of OOP, perhaps you could construct a very simple example class, and have questions showing some examples of bad OOP practices. The answers they need to supply would be to indicate which questions illustrate bad OOP practices and why. For example, show direct access of a data member from outside the class. Some questions should show proper OOP design and usage.

The samples need not be language-specific. The basic constructs of classes are the same for C++, Java, .NET, etc.

Dan East
Actually the real reasons for round manhole covers is because of what they're covering. Manholes cover underground tunnels formed of pipes. It's much cheaper to just use that pipe to also form the access to the tunnels then a merge some other shape in. Consequently the holes are round so the cover is round.

The other reasons are strength and costs. A circle is much stronger from all sides then any other shape and cheaper to manufacture, both in material costs for desired shape, and in manufacturing processes needed to create the desired shape.

The truth is though that they're round because they've always been round and it's worked well before so why reinvent it now. That's how the world works.

Anyways, just bugs me when software engineers ask interviewees questions regarding mechanical engineering with out any actual background in the field (I've almost as much training in both).

I like Dan's questions. Their ability to work in a team, understand OOP, and apply OOP is much more revealing if they can spot problems and solutions from other's code.

Also, UML isn't quite as universal as people think. Alot of places use a simplified version, or their own modeling standards, etc. Alot of that depends on the environment and if the programmers had a CTO or Chief Architect that fed down object models.

A good candidate should be able to read and apply your modeling diagram standards (UML or not), but he might need refreshing during the interview. A key of symbols for instance. Maybe a sample diagram to gleam off of. Good programmers know how to refactor even from non-code sources ;)
A good question is always:
"When you need to know something, what do you do?"

More often than not, it's more important if they know how to independently find their own answers, rather than have to use the company's time and resources to give them the answer they need.

-John
While weedeating I thought of another method of questioning about OO design. This is specific to C / C++.

Using plain C code, I can create a struct that contains both data members and pointers to functions used to manipulate that data. Would this implementation be true to the OO paradigm? What advantages are there to a true OO language like C++ over my implementation?

Basically the response should include things like restricting access to member vars and functions, member functions can access class data as if it were local, inheritance, constructors / destructors, etc.

Dan East
One thing that I have always hated were the people who pretend to know what they are doing when they have absolutely no idea at all. I witnessed this time and time again when I was a technician at Best Buy. I would give the honest answer, but the customers would often like to talk to the guy who made up some totally off the wall answer. I find this is a common occurrence in anything computer related. Another thing I see that people do all the time is try to talk so fast that you don’t have time to question them when they are wrong. I believe portraying your idea concisely is much better than trying to deliver it as fast as you can.

I propose that you ask a question that is total nonsense and see how they will react. If they make up some total b.s. then you know they are not people you would want to hire.
Regarding the manhole covers... I never liked that question, or rather the expected "because the holes are round" answer... It just doesn't make sense... A manhole cover of ANY shape won't fall down the hole not because of it's shape, but because the hole it covers is countersunk to the surface of the road, and the portion above where the hole begins is bigger than the hole. I mean, if we have a pipe in the ground with a 12" inner diameter that is flush with the ground, putting a 12" cover over will do no good, the cover will fall down regardless of shape (assuming it falls perfectly straight). The only way for it NOT to fall down is for the cover to be the size of the OUTER diameter.

My answer to the question "why are manhole covers round" has always been "because the hole in my ass is round, what other shape would properly cover it?"

Then again, I don't work for Microsoft. I wonder why ;)

But I digress...

In answering Refractor's original question...

Whenever I interview potential employees, I know that someone before me from HR has weeded out the people that really don't have a clue by answering basic knowledge questions that I have put together.

Then in the interview, I always start with prior projects. I use that as a springboard to a very spontaneous conversation about technology and development. What I'm looking for is someone (a) that has a passion for what they're talking about, (b) can admit when he doesn't know something and (c) can convince me of their point of view when we disagree. Well, at least persuade me to reconsider my opinion anyway :)

I don't bother with logic tests because I don't think they prove anything. I know plenty of smart people that never get a single one right.

I let them know up-front what specific skills I think will be most important and ask them to describe how they've used these skills in the past.

Specifically for the OOP stuff, as I too find that to be extremely important, I ask them to describe class hierarchies that they've had to put together in the past, and I ask them for specific examples of times they've had to use OOP techniques (i.e., a time they had to subclass something to add some functionality, an instance where they added an overloaded method to a class to make it polymorphic, etc). I also try and get them to bring some sample code to illustrate these things as we go. This opens up the opportunity to ask questions and see how they react, how they think on their feet and even how they react to criticism.

If they can draw up some UML, so much the better, but it's more important that they can diagram their thoughts in a way that is understandable. I mean, unless your a real expert with UML it's almost useless anyway... If you can draw a simple class diagram, good enough, even if all the symbols aren't exactly right. As long as you can explain what you draw, that's good enough for me.

As someone said previously, hiring is largely instinctive, I'd say something like 85% actually. If you get a good feeling about someone, whether their resume is top-draw or not, you go with your gut. As an example, my first job in the industry, I had to prior professional experience and no degree or certifications or anything. The person that hired me spent about two hours with me, just looking at code I had written, asking me some general knowledge questions (most of which I now know I got wrong!) and just talking. He hired me and I was with the company for eight years and in about six months it was apparent to everyone that I was far and away the most capable developer there. That guy made a good call, but if he had gone by my resume and test answers alone I would have been shown the door faster than you could blink an eye.

I understand you don't have two hours, but I think if you take their prior experience and use that as a springboard to just converse with them, your gut will pretty quickly let you know if they might fit the bill for you or not. You can tell if they think logically in a few minutes without resorting to logic games. You don't need to see that they have memorized every .Net class out there, as long as they can speak from a conceptual level you can tell they will be able to look up the info as required (just like the rest of us!). Most importantly though, you need to get a read on their attitude in general, and that can only come, IMHO, by talking to them, person to person.

That's just my 00000010 cents anyway.
Firstly, thanks for all of the input, I appreciate it. :)

I'm discarding anything language specific (including C.Reports, etc)

Here's how my "plan" goes (so far):


  1. I'll ask them about their CVs, projects, and especially how they've used OO in the past, and whether they have done any class design.

  2. The test.

      The emphasis is on the OO stuff here, not the SQL.
    • For the OO part of the test, I "devised" an insane set of classes of shapes (triangle, square, pentagon, polygon) with entirely public (and very dubious) attributes (long Colour, Points [3 or 4 or 5 or * respectively], boolean Border - double Area(), double Circumference()) - there is no hierarchy, and no interfaces. I've asked them what's wrong with it, and how they'd "fix" it.

    • Then they have to modify the "border" to be user-definable (type, size, colour).

    • I put Dan's "Can I hack together OO in C" question in there - thanks Dan :)

    • I have some "nasty" SQL questions for the first part of the test (one needing a "group by" + "having", two needing either an outer join or a correlated sub-query to get it right).

  3. In the last 15 minutes I'll check what they did in the OO part of the test, getting them to comment on the whats and whys.

  4. I'm also going to throw in a question about what they'd use to make a highly modular application framework (I'll be looking for the answers in "defined interfaces", "reflection", really).


They'll either sink very quickly or they'll swim. There isn't much middle-ground, thankfully.
For those interested, of 8 candidates (so far - I might have one more next week):

Only half of them even attempted the OO questions :roll: Of those that did, only two made "sensible" comments and structuring. One of them decided that Dan's "OO in C" was a good idea because "it'd be faster than C++"...

The database side was even more depressing. Not one of them answered all of the questions. Of the three straight SQL queries they had to write, nobody got #2 or #3 right, and most got the first wrong.

One only answered the SQL query questions... and got them all horribly wrong.

Thankfully, there was one guy who was good at the OO part, could discuss things well, and had a better stab at the SQL than most of the others. :)

And now I have to go read some books for when I have my own interview "early next week" ;)
Sounds like you haven't had many good candidates. A suggestion...

Can you post your questions here? It might be too late for it now, but that way you could get some answers back from people here and come up with some sort of baseline. It could be that the questions you are asking are unfair in some way, it could be that they don't make sense (and potential employees might be inclined to not admit that) or they may be good questions and you just got a batch of terrible applicants, but you'd have some reference to go by then.
Can you post your questions here? (various reasons....)

I'd say the main reason we'd like to see 'em is because we like a challenge, and a good techy discussion could be fun!
That certainly figures into it :)
I intended to put them up for you guys sooner, but I've had a mad week so far :cry: .

Test is <a href="http://www.voodoofrog.com/InterviewTest.pdf">here</a>.


Enjoy ;)
Very nice test! Can I use it myself (we're going to be looking for a new developer some time in the next few months)?

The OO questions are nicely put together - no background knowledge required, just a good understanding of OO. Adding a simple "point" object definition might make it more compete, as points are defined as objects - but no def is given. Mind you, that's probably one of the things you're looking for the candidate to spot.

On the SQL side - I can't beleive nobody could do the queries, is SQL a dying skill?
I like your question about null - I just wish somebody had told Oracle that null is not the same as "" ;)
I take it the error 100 is a trick question - to me it means go open the help file for the particular RDBMS.
Sure, if you'd like the test as a Word .doc file (with some hidden answers and comments) then give me a private message with your mail address.

OO
I deliberately left the point class out of the "analysis" because I didn't want them to worry about defining a point class - it was really a "take it as read" approach.

For the "border" question, all but one of them put the border info (type, colour, thickness) into the polygon class, rather than making a new border class - that was a bit disappointing.

SQL
For the SQL side, the second question isn't as obvious as it may at first appear. The key word in the question is "all". Lots of people half-answered it and thought they had it right. If you messed up the first or second, the third wasn't evident.

Error 100 isn't 100% a trick ;) Code 100 is (generally) NO_DATA_FOUND (in Oracle, Sybase, MicroSoft SQL Server at least). If they commented something like "I'd look in the manual", that was fine. Really that was to show whether they'd embedded SQL in procedural languages or made stored procedures (we do both a lot here).

Quite a lot of them commented that if I'd given them a database to access with a GUI/Isql then they'd have done much better. We deal with confidential banking applications and data, and some of the time we have to work without any data because the bank can't give it to us. Sure, we could make it up, but sometimes it's distinctly non-trivial to fudge together some "sensible" data.
I actually thought the OO part had some flaws, while the SQL part was quite good. Take my comments for whatever little they're worth...

(1) A job interview is, for most people in most cases, a stress-inducing situation. Unless it's actually your intent to raise their stress level to see how they react, you should be careful that the test isn't a tension-building experience, more so than it will be naturally anyway. For the OO part, a question that simply says "comment on this" strikes me as a big tension-builder. What is the tester looking for? What points should I touch on? Should I just list everything I can think of? What if I forget the one most important point the tester is looking for? What if everything I put actually makes the tester feel stupid because THEY didn't think of them? (I know people that would react that way, hopefully you would see it as the plus it actually is). I would very much suggest wording that question differently, and give at the least some clues as to what kinds of things you want to see. If it stays as-is, I can very much see psychologically where the candidate gets so stressed out from the first question that they blow the rest of the test, making them look like a poor candidate when really they're just too tense from the whole interview process. Especially in this job market, people are even more tightly wound when trying to land a position than they'd normally be, at least that's been my observation. (Wait, you spelled color as colour... Your no in the U.S., are you? Maybe my job market doesn't apply then.)

(2) The question about "how would you do it" is of course perfectly fair, in fact I could argue it's all you really need. However, you have to be very certain that the details you give to build the solution are detailed enough and numerous enough that the person doesn't feel like it's an open-ended question. If there isn't a very clear picture of what needs to be built to evaluate the final product against, your not likely to learn as much about the candidate as you had hoped. I know your just looking for general concepts not specifics, but it's a lot more difficult for everyone all-around if the test is geared towards general concepts, rather than gleening the candidate's understanding of the concepts based on their implementation of them in a more detailed scenario. I hope that makes sense, I'm not sure I put that thought into words as well as I'd like.

(3) I thought the SQL part was good. The only comment I would make is that I hope your not looking for perfect syntax on the queries. That I think would be a bit unfair. If they write the query generally right but mess up the syntax slightly, that shouldn't be a big deal. I suspect that's the approach your taking though based on what you've said previously.

See, this is where it can get tricky...

Why do you consider putting the border attributes into the class not a valid (or at least not the best) approach? Assuming you don't change the public interface and just add private border_style, border_thickness and border_colour members with public setter methods for each, maybe overload the constructor to take them in too, why would creating a new Border class be more truly OO? I have to admit I probably would have added them in the class as well, I can't see any good reason based on what I see on the test NOT to take the most direct approach. What are you looking for with that question specifically and generally?
I always appreciate your opinion Frank :)

(1)

Before they did the test, I did go through the test briefly with each of them telling them roughly what I wanted - that was only fair as their native language wasn't English and I didn't want to test only their English. I also told them to do Dan's question if they had time because I knew that'd confuse a lot of them.

I only Guinnea-pigged the test on one person here at work, and he did ok with it. Unfortunately I couldn't test a "real" candidate with it before I had to use it on everybody else - my schedule was to do 8 one-hour interviews/tests in one afternoon.

To be honest, I didn't see the "comment on this" as particularly stress inducing. There are so many things horribly wrong with it (no inheritance or polymorphism used, public attributes), etc, that I figured they'd hack it to pieces. I honestly think that they didn't attempt it because they had no clue about OO rather than no clue about my particular question.

I do, in hindsight, see what you're saying though.

Should I just list everything I can think of?


Yes. That's what I wanted. If they showed me up, great. :) It was a deliberately open question.

JFTR, I'm in Luxembourg in Europe. The job market is pretty harsh, but we need somebody who can perform, even with vague analysis (story of my life here). Parts of the test were deliberately "harsh".

(2) What I was looking for implied in the specification on page one and the "analysts" classes. It was the OO part of the test, after-all, and the analyst's stuff wasn't really OO :)

(3) Nope, perfect syntax wasn't necessary. However, SQL really isn't a complicated or particularly varied language and so they should've been pretty close.

(4) So long as they justified their choice of where to put the attributes, that was enough for me. If they put it in the poly class, that was fine, really.

Having said that, the IMHO bit:

Having a whole slew of border detail within the polygon object doesn't make sense to me from a responsibility point of view. Say I suddenly want to make the border semi-transparent or add more functionality/display properties to it... it starts filling the polygon with all sorts of crap that may or may not relate to it (it may not even have a border). Moving the attributes and methods for the border into a seperate border class keeps everything logically seperate. Then the polygon can aggregate the border.

Also, a border class makes things more reusable/flexible - I can a border to classes other than polygons later in the day if I need to.
Well, I'm glad someone appreciates my opinion. :) If I could just get my wife to...

Good point about the border class. Kind of off-topic, but those decisions are always a pain to make because you can take a great many classes and look at each attribute and say "gee, this should be it's only class because I may some day want to build on it, even though maybe I can't see why right now". It's always a battle between decoupling every little thing from everything else or including things within other things were it makes sense, normalizing and denormalizing. Just like in database design, sometimes it might make sense to have the name field contain the last name and first name together rather than having two seperate fields (ok, that might not be a great example, but you get the point).

You know, I think I have a solution to all this... give out your test and tell the candidates "look, go home, study this, come up with your answers, then come back tomorrow". Explain clearly to them that if they come back tomorrow and get even one question wrong, they will be shot on the spot.

I suspect only the truly gifted candidates who REALLY know their stuff will come back. Saves you time and gets you the cream of the crop! True, there might be a higher than normal carpet cleaning bill... I suppose it's not a perfect solution...

And anyway, anyone that shows up the next day, you will know they are psycho and will work 120 hours a week for you, so it's all good.