I agree. When I started to treat my writing endeavours as a hobby rather than as a path to fame, glory, riches and world domination, I also started to enjoy the writing process a lot more. Nowadays I only write when I want to write, and I only write what I want to write. It's a freedom I've come to cherish.
Do you finish anything though? A lot of writers find that the effort of finishing the story is a lot more work than writing the early parts and so they have half-finished novels in their files that realistically they will never finished.
I'll leave it to the reader to decide if that is okay or not. For me, I know I have too many unfinished projects and so my stories will remain dreams that never get written down.
Thats most of everything though. The hardest part of finishing your programming project is the last icky bit that you really didn't want to do yet, or bug fixing, or polishing. The last part of painting is the touch ups, and thats also the longest part. Its much easier to just come up with a sketch of a piece of art (or any project) than it is to get into the nitty gritty painstaking details that it requires before you can say its finished.
I've finished 3 novels, and one remains half-written. My downfall is always the world building - I often find it's more fun daydreaming the world rather than having to deal with cantankerous characters who refuse to go where the plot needs them to go, and always argue about everything.