I thought about writing books (technical stuff) but then realized there is nothing I can do about piracy, pdf/epub/etc are just a few clicks away. unlike music and movies that you have some leagues to enforce IP laws once a while, for books there is essentially none. It's hard to get motivations considering writing books are so demanding.
TBH, I find a downside of publishing through a traditional publisher is that I can't just freely distribute in digital form.