Writing is a form of herding. I herd words into little paragraph-like clusters.
Writing music is just like writing a book.
I've been asked which of the other arts novel-writing is most like, and I have come to believe it is acting. Of course, in terms of pattern it can be like music, in terms of structure it can be like painting, but the job to me is most like acting.
To me, making a CD is like writing a book.
I build a book the way coral reefs are built: millions of little calcareous skeletons piling up one atop another, though in my case the skeletons are drafts.
Our society expects that everyone should learn to write, even though very few become professional writers. Similarly, I think that everyone should learn how to program, even though very few will become professional programmers.
It's true that writing and pastry-making are similar, but when you work as a pastry chef, you can get a kind of mania that everything you see is related to pastries.
When talking about writing, I often use the analogy of archaeology. There are these great tunes all around. Your skill as a musician allows you to pick them out without breaking them.