Writer's block is not a problem. It is a *symptom.*
Going through a divorce? Thyroid imploded? Burnout? Family troubles? All perfectly good reasons for your brain to say "nope, not right now."
Accept it. Spend your energy dealing with the underlying problem. Then, #writing.
Maybe *you* wrote through your divorce. OK, fine. But there is some life event that will stop you cold.
(The preceding brought to you by someone yammering that writer's block is not a thing.)
Just in case somebody need this to be said: it's the same with programming (which actually is writing).
@Shamar I've done programming, and it's not really the same.
Similarities? Sure. But there's a very different underlying mindset.
I'm not a writer (poetry count? and blogging?) so maybe you are right.
But maybe you are confusing coding and programming.
When you code, you encode something that is known into a certain language.
When you program, you explore a problem to build a solution. With my operating system I've had periods of "writer block". Programming is a deeply creative process.
@Shamar oh, it's certainly a creative process, no disputing that.
But I've written programs to solve previously unsolved problems.
It's just not the same creativity.
@Shamar Happy to make you think.
Writing about writing is just navel gazing. It quickly gets annoying to everyone else.