Two years of a second language were required in my high school and two semesters in college when I was a Communications major. Zero computer programming was required for me ever. Took Spanish as my language both times so I effectively took three years of Spanish and can’t really hold a whole conversation.
Hablo espanol un poco.
I learned a limited amount of html via MySpace and Wikipedia (designing my home page and editing articles respectively).
My opinion is I think both should be required in high school and college and not interchangeable. I feel that the spoken language allows for a broader cultural appreciation, programming for a better understanding of an ubiquitous technology, and both for a wider, transferable employment skill set.
Even if someone focuses on only one due to their major and career interests, at least a small amount of study in the other can only be beneficial. I think learning none of either would be a mistake.