Writing programming books
Petzold writes an interesting blog on authoring programming books.
I agree 100% with him, you do not do it for the money. I co-authored a book once and did not receive a dime, not one dime, for my efforts. In fact, I get paid more to do a technical book reviews for Addison Wesley then I did to author this one. Oh well. I am not complaining as I enjoyed the experience.