What was your process of learning songwriting ?

Did you just experiment until you got something you liked or did you watch tutorials, read books, worked specifically on rhythm for melodies, worked on catchiness, storytelling, conveying emotion and all the other stuff ? Was it a “throw spaghetti on the wall and see what sticks” or was it a methodical approach ?