Slashdot Mirror


Where Should I Get My Job Interview Code Samples?

crlove asks: "I'm preparing for an upcoming job interview and my interviewer will want to see some code samples. Unfortunately, all of the coding I've done work-wise since college is not only proprietary, but often classified. To be honest, with long days at work and a busy life outside of it, I haven't had much time to code on my own. So, what should I show my interviewer? Should I start working up some code samples? If so, what would be considered sufficiently complex to take to an interview?"

21 of 249 comments (clear)

  1. Easy solution by Anonymous Coward · · Score: 5, Funny

    If you dont have time, pay someone on rentacoder.com to write something for you.

  2. If you can't think of anything by dcapel · · Score: 5, Funny

    You can always "lift" some snippets from here.

    --
    DYWYPI?
  3. find theirs by Amouth · · Score: 4, Funny

    if your really good you get a hold of their code fix it and give it back to him in the interview - personaly i like the idea of handing the person being interviewed something from the cbfuscated C contest and ask them to take 5 min and tell me what it does - if they know you show them (seen it before) hire them... if they can manage to read it in 5 min and know what it does having never seen it before - hire them.. if they just look at you dumb.. send them home.

    but that is my personal view..

    --
    '...if only "Jumping to a Conclusion" was an event in the Olympics.'
    1. Re:find theirs by Anonymous Coward · · Score: 1, Funny

      It prints "Segmentation fault" and exits.

    2. Re:find theirs by Ihlosi · · Score: 2, Funny
      and ask them to take 5 min and tell me what it does



      Simple: "This does get the person who wrote it fired if it ever turns up in a real project."

  4. Do they have to be YOUR code samples? by gunny01 · · Score: 2, Funny

    I'm assuming so, but you could just show up with the Linux kernel or the Firefox source. Failing that, grab the FreeBSD source code and change all the varible names to some version of 'foobar'

    --
    kill all the fucking niggers
  5. Re:A total waste of time by earnest+murderer · · Score: 4, Funny

    I agree.

    But since they asked, you might as well think big.

    --
    Platform advocacy is like choosing a favorite severely developmentally disabled child.
  6. Here's a code sample from my younger days... by __aaclcg7560 · · Score: 3, Funny

    10 rem My first program... :P
    20 print "HELLO, WORLD!"
    30 goto 20

    1. Re:Here's a code sample from my younger days... by __aaclcg7560 · · Score: 2, Funny

      The real trick is writing out "You Suck!" in Logo Turtle. That's what separates the men from the boys. :P

  7. The answer is obvious! by Frogbert · · Score: 2, Funny

    Experts Exchange is well known for its well written, bug free and easy-to-read code samples. You should give it a try!

  8. Just say you invented this: by bunbuntheminilop · · Score: 5, Funny

    float InvSqrt (float x){
    float xhalf = 0.5f*x;
    int i = *(int*)
    i = 0x5f3759df - (i>>1);
    x = *(float*)
    x = x*(1.5f - xhalf*x*x);
    return x;
    }

  9. Re:Be honest! by camperdave · · Score: 5, Funny

    FYI, most people call them the late 80's.

    --
    When our name is on the back of your car, we're behind you all the way!
  10. Re:Why is asking for code samples a bad sign? by camperdave · · Score: 4, Funny

    He can drop his pants and shit better code than I ever could... He isn't pleasant to be around.

    He probably isn't pleasant to be around because of his coding style.

    --
    When our name is on the back of your car, we're behind you all the way!
  11. Re:A total waste of time by BadAnalogyGuy · · Score: 4, Funny

    If loving Perl be wrong, I don't wanna be right.

  12. Here's what to use... by Channard · · Score: 2, Funny

    10 PRINT "Give me a JOB!" 20 GOTO 10

  13. Re:Be honest! by 91degrees · · Score: 5, Funny

    That's a shame. I was hoping you could tell me how to get some work in 1973.

  14. Re:A total waste of time by Project2501a · · Score: 2, Funny

    Paula? is that you?

    --
    ----
  15. For eln's delecate sensibilities about perl... by tlambert · · Score: 2, Funny

    For eln's delecate sensibilities about perl...

    echo "this is a sentence" | awk '{ cnt = NF; while ( cnt > 0 ) { printf( "%s ", $cnt ); --cnt; } printf("\n"); }'

    Happier?

    -- Terry

  16. Re:Be honest! by timelorde · · Score: 2, Funny

    I still have some old IBM punch cards in my desk. I'll send 'em to you.

  17. Re:A total waste of time by computational+super · · Score: 2, Funny

    Oh, that's alright, you can do that in Java, too:

    Runtime.getRuntime( ).exec( "perl -e \"print join ' ', reverse split /[ \.]/, $ARGV[ 0 ];\"", new String[ ] { "this is a sentence" } );

    --
    Proud neuron in the Slashdot hivemind since 2002.
  18. Re:Be honest! by UtucXul · · Score: 4, Funny
    Ask questions about it. They usually show very quickly if you understand the code. Then there are four possibilities:
    1. The code isn't yours and you don't understand it. Bad. You're out.
    2. The code is yours and you don't understand it. Also bad. Also out.
    This is grossly unfair to Perl programmers. You don't really expect us to understand every regex we wrote months (or days) ago, do you?