As a poet, I suffer from the programmer’s curse from too much coding in the years I should have done more art.
Just like you have to pre-determine the output before you start coding, I have composed almost all of my verses by writing the last line first.
Even now, I am stuck for 3 days on a draft with this last line already written, and I know there are words in the subconscious that will eventually emerge and complete the rhyme.
But for once, someday I want to write a poem without thinking who it is for or where it will flow or what it will evoke. Until then, I compose the way I code.