I think learning a programming language is far more practical than learning a 2nd language - at least in America. Most Americans do not need to speak a 2nd language during their everyday routine. Most people do not travel somewhere where a 2nd language is needed or where the native already don't know English.
Learning to program is far more practical because we can output many more computer scientists/software managers than people who sort of know a foreign language but soon forget it after 3-5 years after high school because they get to speak the language every day of their lives.
Of course, it always depends on the individual. Some people would be better suited to learn a 2nd language, which most (I think) would be better served in knowing a computer language.