It feels like a fairly arbitrary comparison to me. Why not ask “which is more useful, learning statistics or how to cook?” They’re both useful in different contexts. I think people get snookered by the term programming *language*. Programming languages don’t really resemble natural languages in any meaningful way. Sure, you can represent both as strings of text, but that’s about where the comparison begins and ends. To answer your question: I took a couple of years of Spanish in high school. I was never anything approaching fluent. It was definitely useful when I was traveling in Spain and Latin America. I was never required to take any formal programming training until college (though I had many years of informal self-study before that).