There are several topics about what questions will be raised in an interview for a programming job, but none actually talk about a small problem that some companies want: an example program.
My question is based on my last job application, where I've been asked to create a simple program and send it to them.
Well, this raises several questions:
- what kind of program should I write?
- what should I implement?
- what should I use as a show-off for technical stuff?
and mostly importantly (been several users of SO that person that review the code) what is the company expecting?
My current idea is to create a simple Blog using an XML file to store the data, and if required build a simple one ASP.NET page with add/edit/delete functions, and create a window forms as well a command line application that would do the same.
things that I should NOT avoid:
- comment all the code
- use regions to divide code
- create class object to use with the "blog"
and should I:
- use Interfaces?
- use Virtual and override some method (myBlog.ShowPost() for example)?
- apply any design pattern?
- use a Helper / Utilities Class?
- use DAL and BLL?
how about "shipping" should I...
- use MSI (to prove that I can create nice installers)
- just send the code as a Visual Studio Project
Any idea of a simple program, and exactly what should be in the code is greatly appreciated :)