I also wrote a programming book. Expect about an 8% royalty rate, and an advance anywhere from $4k to $8k, paid out in installments as you turn in milestones of the book. Depending on how well your book does, you may never get any more than your advance, or you may get a lot more. I've received about $8k in the two years since the book went on sale, for a total of $16k including my advance.
That may sound like a lot, but keep in mind that it amounts to about $8 per hour based on the amount of work I put into it. It's A LOT of work. But it's very fulfilling, and it's wonderful to receive tweets and reviews from people who your book helped.
That may sound like a lot, but keep in mind that it amounts to about $8 per hour based on the amount of work I put into it. It's A LOT of work. But it's very fulfilling, and it's wonderful to receive tweets and reviews from people who your book helped.