But, there's nothing quite as satisfying as setting out to do something really difficult and seeing it come together. And unlike most other things in your career where you're part of a team and sharing your success, a book basically rests solely on your shoulders. So it's easy to point to it and truthfully say "I did that".
Plus, it turned me into a really good writer.
Aside from that bit of data, there is one definite advantage to writing. The process of writing a book is a great way to learn more and get better at explaining what you know. This is a double edged sword because if you spend six months on a first draft, you will likely see a major difference in quality between the first section you wrote and the last.
You may make some money, but you’ll almost certainly learn something.
I think in general the answers might be something like ‘look for clues’ or ‘try to get feedback on whether the idea is good early’ but I also think a lot of the time it’s just people writing books they want to write or that they guess people will be interested in. But I’m definitely guessing and I don’t really know.
This might be a post-Covid effect, though. During Covid, books sold well, people were probably bored. Post-Covid, with high inflation kicking in (we are around 17 per cent in Czechia), people reduced their cultural expenses first: food and energies are more important.
That said, I found the combination of being a programmer and a writer fairly efficient. Being able to write documentation in detail beforehand means that I discover a lot of subtle problems and corner cases before I actually implement something. And, as a practising writer, writing documentation feels easy to me, a natural flow.
"so you've earned 50K for a year work on writing that book? dude that's like $x/hour, I earn a $300K wage + 1 million in stocks per year, and they have a private cook and gymnast at the FAANGplex for me and everything".
on edit: of course not particularly relevant to most tech books but still it is sort of a bad look that nearly everybody on HN is wild about.
... without actually adding any!
There is also that myth-might-be-true thing of selling to developers book-wise means that you are targeting two groups those who cannot afford 2nd screens and those who can...i.e. print copy and electronic copies should be at different prices.
You can pick up an extra monitor at a thrift store for around 10 bucks. My 2nd monitor came from a thrift store. I use it for displaying the manual while I'm working.
Which may be fine for some purposes but not if you're banking on a hit.
Would love to hear more about your launch tools.
[By one year after publishing my first book](https://jeremykun.com/2019/12/01/a-good-year-for-a-programme...), I had sold 11k copies, and with self publishing you get a much bigger royalty from each copy, drastically lowering the bar for financial success. I expect my second book to do even better, because my audience has only grown since then and the book is more general purpose.
I might be an outlier in that I have already built up a large audience from blogging about math. But the benefit of self-publishing, aiming your work at folks with disposable income, and having a niche all seem to make a full-time writing job quite straightforward.