Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Some reflections on the Brainbench Perl Test

by webfiend (Vicar)
on Dec 15, 2008 at 07:21 UTC ( [id://730364]=note: print w/replies, xml ) Need Help??


in reply to Re: Some reflections on the Brainbench Perl Test
in thread Some reflections on the Brainbench Perl Test

My favorite question from that pool was "How would you parse a CSV input?" , the answer of course being.. "Don't!, use Text::CSV and get on with your life."

I've had the same general philosophy overall, but strangely enough that's rarely the answer employers are looking for. So I've come up with a multipart response:

  1. Ask for more details about the CSV being input. Ask the clever things like what types of values could be in the string, what's the encoding, are paired quotes acceptable, is the first row a header, and anything else I think of.
  2. Tell them my first choice would be to use Text::CSV - or if my memory is sharp that day, I'd mention a few of the variants. I'd also try to show them an example of usage appropriate to the information I gathered in part one.
  3. Then, in the inevitable case where they look at me with that "Yes yes, but what if a sniper takes a shot at you every time you load cpan?" look, I'd try to sort through the solution just with core components. It's tedious, and I'd prefer to not take a job where using CPAN was a capital offense. Then again, just looking at it as a problem-solving exercise makes the interview kind of fun. And really, after enough interviews, I'm looking for any way to make them more pleasant experiences.
    • Comment on Re^2: Some reflections on the Brainbench Perl Test

Replies are listed 'Best First'.
Re^3: Some reflections on the Brainbench Perl Test
by Tanktalus (Canon) on Dec 15, 2008 at 19:00 UTC
    "Yes yes, but what if a sniper takes a shot at you every time you load cpan?"

    "I'd have to start looking for another job, sir, as, apparently, this one is far too dangerous to my health."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://730364]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found