I don't paint or sculpture or otherwise create anything that I'd be denying vital parts in myself by not, for instance, publishing sex-related material on the internet. As much as I disagree with it, our society has some terribly dysfunctional attitudes with regards to sex in particular. I don't need right now. Twenty years ago Barrett could have been publishing his stories in various publications and it is unlikely that his employer would ever have learned of them. The information would not have been as easily accessible to anyone.
Potential employers are unlikely to do a publication search.
Unfortunately, you can also find information about people with similar names. And, because it is so easy to publish anything on the internet, and to forge posts to appear to have come from someone, you might even find utterly false information. What separates this harassment from the old bathroom wall is that the scribbles could be cleaned and all traces would be gone. When I applied for a job the human resources folks wouldn't find a copy of the grafitti or have any reason to think I wrote it. Well, having everyone who does internet research to screen employees trained in discerning what is or is not a reputable source would be a beginning.