Sadly I toiled for 8 years on a novel (while working a day job). It was a massive effort.
It might be hard for people to understand but I felt I had to write it (i.e. writers curse).
I wish I had spent all that time on studying programming etc. Unfortunately humans are not fully rational. I actually like my novel. But it wasn't worth it.
https://www.amazon.co.uk/Can-Get-Restart-Jack-Gowan-ebook/dp...
But hey that's life. Shrug.
Writers should just write for the pleasure of writing and expect that the majority won't make it. It's about as likely as winning the lottery