There are two ways to write error-free programs; only the third one works.
Read, read, read. Read everything — trash, classics, good and bad, and see how they do it. Just like a carpenter who works as an apprentice and studies the master. Read! You'll absorb it. Then write. If it's good, you'll find out. If it's not, throw it out of the window.
"Writing is a way of living, a way of existing, a way of being in the world."
在我看来,问题在于你被灌输了这样的信念:你所做的事情至关重要。但这全是无稽之谈。