An anonymous reader writes: I am a contract developer from a major U.S. city. My rate has never been the lowest, nonetheless very competitive considering the speed and quality of the work I have always delivered, as well as the positive feedbacks I've got from most clients. In the past ~3 years I have been working on a sizable project for a major client. For most part it has been a happy arrangement for both parties. However for various reasons (including the still ailing economy), starting this year they hired a fresh college graduate in-house, and asked me to teach him all "secrets" of my code, even though they have the source code by contract. The implicit (although never openly stated) goal is of course for him to take over the project and hopefully reduce cost, at least in the short-term. I say "hopefully" because I am pretty sure that, unfamiliar with the software industry, they underestimated what it takes to make quality, production-ready code. I am not afraid of losing this particular client as I have many others, but I want to ask Slashdot, how do you handle this type of situation — train someone who you know will eventually replace you at your job?