One part of the article: This is about a guy who wrote a book on his own time, published it outside of work. Someone did not like some parts of the book and the guy had to quit his job? There is nothing to suggest the man acted improperly at work. I write fictional stories in my spare time (never at work), I enjoy doing it. Some people enjoy reading them (I can't figure out why) It is a sad day for a Democracy when I…
We've had this discussion already, but claiming sexist views is going to be a problem for you whether you do it at work or elsewhere because of how laws around hostile work environments and notice work. Particularly, if you go on to actually create a hostile work environment (as one might reasonably suppose you will, having publicly espoused the relevant views), then the company might be on the hook for enhanced damages based on the idea that they knew or ought to know you posed a risk. Best not to do it in a high profile way if you want to work for a big company where people are sensitive to that sort of thing.
If you want this to stop being the case, there are a few things that would need to happen. It might be that a combination of these would suffice:
You'd need to convince workers to not believe that someone who says sexist stuff in a book is going to cause a problem for them.
You'd need to convince workers to put aside their personal interests in this matter for the greater good (that being the right to write a book that says sexist things but still work at Apple, or wherever).
You'd need to change the law so that companies who know or should know that they have a risky worker don't pay any extra penalty if that worker goes on to harass someone.
There are probably more complex things you could do to solve this problem but I guess those three are the simplest.