Tips for Writing a Technical Book
I've been a technical editor on a few programming titles.  I don't think the average developer realizes that for the authors writing a book is a passion project.Not only won't you get rich, you will be extremely lucky to make minimum wage.  Most if not all the marketing is on your shoulders. Even though it's a hits driven business the publishers do all right though.