Code samples for Job interviews

Random irrelevance that just didn't fit into other forums. Talk about anything.

Moderator: Talkative People

Post Reply
mattheweston
Chaos Rift Junior
Chaos Rift Junior
Posts: 200
Joined: Mon Feb 22, 2010 12:32 am
Current Project: Breakout clone, Unnamed 2D RPG
Favorite Gaming Platforms: PC, XBOX360
Programming Language of Choice: C#
Location: San Antonio,Texas
Contact:

Code samples for Job interviews

Post by mattheweston »

I have a recruiter that is in the process of scheduling an interview and he told me that I need to have a code sample ready. Seeing as I have not had to do this before has anyone ever been in a situation where you've either had to submit a code sample or better yet asked a
candidate to bring on in for an interview?

Anyone have some good advice?
Image
User avatar
superLED
Chaos Rift Junior
Chaos Rift Junior
Posts: 303
Joined: Sun Nov 21, 2010 10:56 am
Current Project: Engine
Favorite Gaming Platforms: N64
Programming Language of Choice: C++, PHP
Location: Norway

Re: Code samples for Job interviews

Post by superLED »

I guess he wants you to go over the code and let you explain in detail how and why you did this and that.. the amount of comments, style (line-breaks and white-space).

So I would go for a sample where you show how you tend to lay out your code, and how you use different elements in the chosen programming language.
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Code samples for Job interviews

Post by dandymcgee »

I would find a small project you've written that is very clean and straightforward, but not stupidly simple (guess the number). Personally, I would probably submit something from my Data Structures course like a templated custom Queue class (unless a different language is specified).
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
JarrodParkes
ES Beta Backer
ES Beta Backer
Posts: 325
Joined: Thu Feb 25, 2010 2:39 pm
Current Project: Yes, iPhone Application(s)
Favorite Gaming Platforms: N64, PC
Programming Language of Choice: C++
Location: Mountain View, CA
Contact:

Re: Code samples for Job interviews

Post by JarrodParkes »

What Dandy said is along the lines of what I was thinking. Anything that displays some attention to design decisions and patterns. Some employers even like to see UML's, etc. but that is more of a per-case thing. Avoid getting too complex, but if you can demonstrate something that is eloquent and optimized, I'm sure they will be impressed.
Post Reply