http://www.perlmonks.org?node_id=920314


in reply to What sample code is appropriate when looking for a job?

As with everything in the job hunting process, put yourself in the position of the hiring manager. Imagine you're the person going over your code sample. What is most going to impress her that you are the best person for the job?

When I look at code samples, I'm expecting to see clean layout and indentation, with telling variables and comments that say not what the code does, but why it does it. Those are the basics.

Above that, I'd like to see something that relates to the problems that I have to solve. In your case, if the job you're applying for does a lot of web development, then show a web app. Better yet, show multiple web apps using different frameworks.

If you can somehow relate your code sample to the industry or specifics of the company, that's best at all. Applying to a book company? Then include code that looks up ISBNs online. Game company? Show something that tracks your Battle.net rankings. Etc etc.

No matter what you choose, make sure it is your best work. Don't include some crap code and say "Here's something I put together really quick, I know it's ugly."

xoxo,
Andy