Singer-songwriter Andrew Gold, who was best known for his 1977 hit single “Lonely Boy,” and the contagious theme song for the 1980’s television show, “The Golden Girls,” died Friday of a heart attack in Los Angeles. He was 59.

Mr. Gold’s upbeat tune, “Lonely Boy,” was featured in such films as “Boogie Nights” and “Water Boy,” popularizing it again with a younger generation. And while most of us only know a small portion of his hit, “Thank you for Being a Friend,” it is a staple of American music culture.

Andrew Maurice Gold was born in Los Angeles and started writing songs at 13. Throughout his career, he collaborated with musicians including Art Garfunkel, members of the Beatles, and Celine Dion, among others, and during the 1970s, released four solo albums.

Survivors include his wife, three daughters and his mother, Marni Nixon, who was a singing voice double for actresses including Natalie Wood in “West Side Story,” and Audrey Hepburn in “My Fair Lady.”

In case you want to lift your spirits and bop at your desk to some catchy tunes, here are videos of Gold’s two big hits: