I kind of see this issue from 2 perspectives:<p>1) You're perfectly in your right to ask for code samples. Given, you have to make sure in some fashion that they wrote it.<p>2) From the perspective of someone without sample code -- I can't show you what I make. I can count a number of reasons why it wouldn't be available: NDAs, trade secrets, company owned code, and even government classified work. In this situation, I would prefer a whiteboard test or code up this problem in a few days and submit it with your resume.<p>You might logically ask, why no other code outside of work? To that I would respond work-life balance. If you insist on "free time" code you'll get a whizz bang coder probably. You'll exclude the people who strive for balance (which may not be what you want, you just have to know you're excluding these people). These people have other interests outside of work and I might argue be more well-rounded individuals than someone who codes for 8 hours and then goes and hacks for 6 more on their side project.<p>Obviously this isn't a hard and fast rule, I'm just giving you the other perspective.<p>I work in IT. I like to code, and I code at work (which means I can't show it to you). I have some sample code from some school projects, but older individuals wouldn't.<p>If you were to do the same thing with IT you would ask "Why haven't you set up a webserver and configured the database." Maybe because I don't have a use for that outside work. Maybe I have other interests or other time commitments that prevent me from doing that sort of work. In respect to coding, maybe I don't have a problem that can be automated, and I would absolutely hate to spend my time implementing an idea that is probably worthless. If I bother to validate it and do my homework, you're looking for an entrepreneur to give up their work in order to join yours as less than a founder.