We have a set of questions for new hires. I'm trying to think up a new one that would both be of a enough difficulty, see if they think to use any modules from CPAN, lead to plenty of talking points during an interview, and be relevant to the sort of things we do here.
We need a utility called fixlinks. Its job is to take an html file, convert all the links inside it to absolute ones, then save the output. It should take three command line arguments, an input filename, an output filename, and the link base.
Implement this program (in Perl).
Consider the edge cases in both determining a link and making a url absolute; create a program to test these cases.
How well does it handle html that is not technically valid, yet works in a browser?
Does this seem sensible? What would you write?
Been There, Did That (Score:2)
Re:Been There, Did That (Score:2)
I do have a few things to nit pick about the code, but I'll save them for a day or so to see if anyone else posts an answer.
Is this a pre-interview task??? (Score:1)
Given as a pre-interview task it allows for a good view into the coders world. You could not only see someone solving a problem but also question his/her thoughts behind certain pieces of code.
bravo
Re:Is this a pre-interview task??? (Score:2)
Re:Is this a pre-interview task??? (Score:3, Funny)
It's reasonable (Score:2)
I was once being interviewed and one of the people had a real-life problem he wanted worked out. We brainstormed on a whiteboard together. This was excellent to do. I, as the interviewee, got to see what a brainstorming session with a possible co-worker would be like, and he got to see what it wou
Outside the box... what box? (Score:1)
;-)