How much of yourself should you reveal when you are writing? The answer, of course, depends on whether you are male or female.
If you are male, it doesn’t really matter. You are the default human being and all experiences about which you write – regardless of whether or not you have actually had them – will be universal.
If you are female it is more complicated. Reveal too much about yourself and you are not a real writer at all, just an over-sharer, wallowing in the petty specifics of a non-male life. Don’t reveal enough and you are suspect, manipulative, a tease. Either way you can’t win.