Slashdot Mirror


Ask Slashdot: Are Timed Coding Tests Valuable?

First time accepted submitter xkrebstarx writes "A buddy of mine recently applied to a large tech company. Before setting up a phone interview with him, the unnamed company issued a timed coding test to gauge his coding prowess. He was allotted 45 minutes to complete an undergraduate level coding assignment. I would like to ask the Slashdotters of the world if they find value in these speed-programming tests. Does coding quickly really indicate a better programmer? A better employee?"

11 of 776 comments (clear)

  1. 45 minutes is plenty of time! by Anonymous Coward · · Score: 2, Funny

    To find completed code for that assignment online.

  2. Re:I dunno... by Anonymous Coward · · Score: 3, Funny

    wth is a fizzbuzz test?

  3. Re:just like speed writing by SurfMan · · Score: 3, Funny

    Funny how you misspelled "Gammar Nazi"

  4. Re:I dunno... by serviscope_minor · · Score: 3, Funny

    I never believed the whole "95% of interviewees fail the FizzBuzz test" until I started interviewing candidates.

    Well, I've never interviewed job candidates and I have a hard job believing this. It's not that I think you're lying (I don't), it's that I've never seen it for myself and my brain has a very hard job accepting that someone who does programming for their livlihood could not solve this in their sleep.

    It doesn't matter that it's true, it's just really REALLY hard to imagine. And I don't WANT to believe it.

    Anyway, here's my entry.


    s/^$/c_0/
    :mainloop

    #Advance the number counter
    tclear1
    :clear1

    s/9$/0/;tdigit1done
    s/8$/9/
    s/7$/8/
    s/6$/7/
    s/5$/6/
    s/4$/5/
    s/3$/4/
    s/2$/3/
    s/1$/2/
    s/0$/1/
    :digit1done

    s/_90/_100/
    s/_80$/_90/
    s/_70$/_80/
    s/_60$/_70/
    s/_50$/_60/
    s/_40$/_50/
    s/_30$/_40/
    s/_20$/_30/
    s/_10$/_20/
    s/_0$/_10/

    #Advance the Fizz counter
    y/abc/bca/

    #Clear the hold space
    x
    s/.*//
    x

    #Divisibility by 3 /c/{
            x
            s/$/Fizz/
            x
    }

    #Divisibility by 5 /[05]$/{
            x
            s/$/Buzz/
            x
    }

    x /^$/g
    s/[abc]_//
    p
    x /100/!bmainloop
    D
    q

    Silly slashdot. Why do you keep reformatting my code and why do you make me type junk here just to get my post accepted? Blah blah blah blah blah blah and you don't like too much repition wither this makes it very hard to paste code into the forum now please let this post in please pretty please with a cherry on top and sprinkles and is that even your bucket in the first place?

    --
    SJW n. One who posts facts.
  5. Re:I dunno... by beelsebob · · Score: 3, Funny

    You know... Every time fizzbuzz is explained somewhere, there are always 100 attempts to solve it right beneath...

    I think this is the first time I've ever seen the first response (or in fact, most of the responses) actually be correct!

  6. Re:I dunno... by Anonymous Coward · · Score: 4, Funny
    That's easy; I'm a fast typer!

    #include <stdio.h>
    int main()
    {
    puts("1"); puts("2"); puts("fizz"); puts("4"); puts("buzz"); puts("fizz");
    puts("7"); puts("8"); puts("fizz"); puts("buzz"); puts("11"); puts("fizz");
    puts("13"); puts("14"); puts("fizzbuzz"); puts("16"); puts("17"); puts("fizz");
    puts("19"); puts("buzz"); puts("fizz"); puts("22"); puts("23"); puts("fizz");
    puts("buzz"); puts("26"); puts("fizz"); puts("28"); puts("29"); puts("fizzbuzz");
    puts("31"); puts("32"); puts("fizz"); puts("34"); puts("buzz"); puts("fizz");
    puts("37"); puts("38"); puts("fizz"); puts("buzz"); puts("41"); puts("fizz");
    puts("43"); puts("44"); puts("fizzbuzz"); puts("46"); puts("47"); puts("fizz");
    puts("49"); puts("buzz"); puts("fizz"); puts("52"); puts("53"); puts("fizz");
    puts("buzz"); puts("56"); puts("fizz"); puts("58"); puts("59"); puts("fizzbuzz");
    puts("61"); puts("62"); puts("fizz"); puts("64"); puts("buzz"); puts("fizz");
    puts("67"); puts("68"); puts("fizz"); puts("buzz"); puts("71"); puts("fizz");
    puts("73"); puts("74"); puts("fizzbuzz"); puts("76"); puts("77");
    puts("fizz"); puts("79"); puts("buzz"); puts("fizz"); puts("82"); puts("83");
    puts("fizz"); puts("buzz"); puts("86"); puts("fizz"); puts("88"); puts("89");
    puts("fizzbuzz"); puts("91"); puts("92"); puts("fizz"); puts("94");
    puts("buzz"); puts("fizz"); puts("97"); puts("98"); puts("fizz"); puts("buzz");
    return 0;
    }

  7. Re:I dunno... by hackula · · Score: 5, Funny

    Nope, but you might try a Javascript programmer. I would be willing to be a Java programmer would implement this using the ReverseFactoryAbstractFactoryFactory pattern though. They might be able to get it to you in a year, but you would be obligated to sign a 5 year 200k/yr support contract.

  8. Re:I dunno... by MrBandersnatch · · Score: 4, Funny

    It took me 6 because I spent 5 minutes trying to find an elegant solution to the problem - do all older programmers suffer from the problem of premature optimization? ;)

  9. Re:I dunno... by narcc · · Score: 4, Funny

    No, most older programmers suffer from "do it right" syndrome.

    I wrote two different solutions and selected the most readable. It took 8 minutes, but I had to chase some damn kids off my lawn.

  10. Re:I dunno... by Anne+Thwacks · · Score: 4, Funny
    elegant, easy to read, and maintainable

    You mean rewrite it in another language?

    --
    Sent from my ASR33 using ASCII
  11. Re:I dunno... by cellocgw · · Score: 1, Funny

    Anyway, I hired the girl that wrote this:

    %!/bin/sh
    sort -n

    Yeah but you were going to hire her anyway 'cause she was hot.

    --
    https://app.box.com/WitthoftResume Code: https://github.com/cellocgw