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?"
If you dont have time, pay someone on rentacoder.com to write something for you.
You can always "lift" some snippets from here.
DYWYPI?
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.'
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
I agree.
But since they asked, you might as well think big.
Platform advocacy is like choosing a favorite severely developmentally disabled child.
10 rem My first program... :P
20 print "HELLO, WORLD!"
30 goto 20
Experts Exchange is well known for its well written, bug free and easy-to-read code samples. You should give it a try!
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;
}
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!
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!
If loving Perl be wrong, I don't wanna be right.
10 PRINT "Give me a JOB!" 20 GOTO 10
That's a shame. I was hoping you could tell me how to get some work in 1973.
Paula? is that you?
----
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
I still have some old IBM punch cards in my desk. I'll send 'em to you.
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.