I actually also wield that in a form of explaining the news, from that perspective, to help others who might be trying to transition into the industry as well in a newsletter: https://char.gd/recharged.
All of this is to say: being a writer actually provides _so many_ transferable skills. It's just a shame that the skill itself isn't valued in isolation.
Many programmers I know try and do both, with the other being a hobby that can get involved.
Programmers have it really good right now, and that's really good motivation for staying in the field.
For example, my neighbor wrote a couple of fantasy novels that he sells on Amazon as e-books. I don't think he has sold many copies. But you can make a start if you desire to. It's like starting a band.
Anyways, don't feel bad because coding is creative work.
BTW, I have been semi-successful at writing--I was a sports writer for a local newspaper before I went to college. Later on, I had a chapter in a compendium on Internet privacy that was a top seller on Amazon. That's a tiny taste of success, right? It's not the same as fiction, I know. Do journal publications count? I have tons of those...
I got paid by the word for the sports articles. I did the book chapter for free. The rest was grant-funded.
I gave up when I shouldn't have, but it was right when my first child was born and the free time wasn't there anymore.
It's actually true that it's never been cheaper to get a book published and find an audience. But when you're self publishing, you're no longer purely a writer in the truest sense. In order for your work to succeed, you must pick up the slack that a publishing company would ordinarily do for you. You must market your work, design an attactive cover, preferrably have a professional editor tear your piece asunder, and build your reputation among the general fanbase of your genre as a producer of enjoyable pieces. Given the above it's "easier" than ever to become a full time self published author (dependent on your genre- fantasy is one of the few genres that has a relatively high chance of succeeding on pure self-publish basis. The best chance is as a romance author).
And when I say that you don't have to be good at it, I mean that some people in these communities read machine translated stories. What matters is consistency and volume of releases.
It's one of those things where you always wonder in the back of your head if it was the right choice. What would it have been like if I had studied writing and literature instead of computer science in school. Very likely, I think I would be writing something similar to this article. It's a tough gig and it's getting tougher by the day.
I can't help but think, though, that I've met a fair number of programmers who find themselves in a similar situation. They get out of a job, go for a while and then just can't seem to get back in. Then what? Do you struggle to make it? Do you cut your losses and try something else? What if that doesn't work? It's a scary thing to contemplate.