i was browsing through the programmers stack exchange q&a website yesterday and i stumbled upon a question about the fairness or unfairness of some interview questions that the candidate was asked to answer. basically, the candidate was asked to answer questions out of his field of competence and felt cheated by the interview. in all fairness, he was a recent graduate and probably didn’t have that much experience interviewing.in his question, he mentioned that he wanted to write the company to tell them about the unfairness of the questions. fortunately, the programmers community responded well and told him that this was not the right thing to do, however a few people did agree with him. since he might not be the only one feeling that way, i decided to write a few (non-technical) things that every programmer should know when applying for a programming job.you don’t have to answer all the questionsit’s a common trick by interviewers to ask a question that the candidate will not be able to answer. sometimes it’s some kind of annoying “mba” question like “why are manhole covers round?” (here’s the answer if you really want to know), but sometimes it’s just a highly technical question that you are not expected to be able to answer. what the interviewers want to know is how you deal with problems that you don’t have the answer for, because that’s going to happen a lot in the work environment. if you get one of these questions, walk them through your thought process, tell them how you would find the information (ask a specialist, a colleague, on stack overflow, etc.). sometimes they might want you to guess how many of one thing there is in a certain region (ex: how many gyms in new york). they want to know how good you are at estimating values, because you don’t always have time to go find the information and a rough estimate might be sufficient. i dislike this kind of question, but you should be prepared to answer it nonetheless.no matter what the question is, just answer to the best of your knowledge. if the question is out of your field of expertise (front-end, back-end, databases, algorithms, etc.), maybe they need someone able to work in multiple fields, or maybe they are just testing you. just don’t complain to them about it or you just lost all hope of getting that job; they’d rather hire someone that will try to find the solution than someone who will complain about the problem.the interview goes both waysif you’re a decently skilled candidate, chances are that companies will be in competition with each other to get you. many companies get it and offer great working conditions and plenty of incentives to try to convince you that they are the place where you want to work; those companies get the highly competent and motivated programmers. however, many others don’t understand that and just want to fill positions; those companies get the unmotivated programmers who just want a salary.so when you’re in an interview, you should ask them about the working conditions: what kind of machine you’ll be working with, which tools (source control, bug/task tracking, communications, etc.), is there a dress-code, will you work in a cubicle alone all-day or can you talk to your coworkers, … they need to provide you with a good work environment so that you can do your best job. you’re going to be there for half of your day, 5 days a week for a long time, you better make sure you’re gonna enjoy the time spent there.never talk about the salary firstthis one’s pretty obvious, but never mention it first even if they haven’t talked about it and they ask you if you have any questions for them. use those questions to ask about the work environment or what a typical day at work will look like. asking about the pay means one thing to them: you’re in it for the money, not because you love the job. also, when they do ask you about how much money you want, give them a range or a baseline (ex: i had x at my previous job, so i expect at least x or from my research people doing this job receive between y and z, so i’d expect something in that range). let them come up with a number.practice makes perfectlike most (all?) things, practicing helps you get better. if you’re not confident in your interviewing skills, set up some interviews with companies that don’t interest you all that much. you won’t have as much pressure to get the job and it will help boost your confidence.that’s all i got for now, good luck!