The 5 Programming Languages You Need to Know

Question: What are the five most important languages that programmers should know?

Bjarne Stroustrup: First of all, nobody should call themselves a professional if they only knew one language.  And five is a good number for languages to know reasonably well.  And then you’ll know a bunch, just because you’re interested because you’ve read about them because you’ve wrote a couple of little programs like [...].  But five isn’t a bad number.  Some of them book between three and seven.  

Let’s see, well my list is going to be sort of uninteresting because it’s going to be the list of languages that are best known and useful, I’m afraid.  Let’s see, C++, of course; Java; maybe Python for mainline work... And if you know those, you can’t help know sort of a little bit about Ruby and JavaScript, you can’t help knowing C because that’s what fills out the domain and of course C-Sharp.  But again, these languages create a cluster so that if you knew either five of the ones that I said, you would actually know the others.  I haven’t cheated with the numbers.  I rounded out a design space.  

It would be nice beyond that to know something quite weird outside it just to have an experience, pick one of the functional languages, for instance, that’s good to keep your head spinning a bit when it needs to.  I don’t have any favorites in that field.  There’s enough of them.  And, I don’t know, if you’re interested in high-performance numerical computation, you have to look at one of the languages there, but for most people that’s just esoteric.

Recorded August 12, 2010

Interviewed by Max Miller

"Nobody should call themselves a professional if they only knew one language."

James Patterson on writing: Plotting, research, and first drafts

The best-selling author tells us his methods.

Videos
  • James Patterson has sold 300 million copies of his 130 books, making him one of the most successful authors alive today.
  • He talks about how some writers can overdo it by adding too much research, or worse, straying from their outline for too long.
  • James' latest book, The President is Missing, co-written with former President Bill Clinton, is out now.
Keep reading Show less

How to vaccinate the world’s most vulnerable? Build global partnerships.

Pfizer's partnerships strengthen their ability to deliver vaccines in developing countries.

Susan Silbermann, Global President of Pfizer Vaccines, looks on as a health care worker administers a vaccine in Rwanda. Photo: Courtesy of Pfizer.
Sponsored
  • Community healthcare workers face many challenges in their work, including often traveling far distances to see their clients
  • Pfizer is helping to drive the UN's sustainable development goals through partnerships.
  • Pfizer partnered with AMP and the World Health Organization to develop a training program for healthcare workers.
Keep reading Show less

Why the White House Correspondents’ Association dinner won’t feature a comedian in 2019

It's the first time the association hasn't hired a comedian in 16 years.

(Photo by Anna Webber/Getty Images for Vulture Festival)
Culture & Religion
  • The 2018 WHCA ended in controversy after comedian Michelle Wolf made jokes some considered to be offensive.
  • The WHCA apologized for Wolf's jokes, though some journalists and many comedians backed the comedian and decried arguments in favor of limiting the types of speech permitted at the event.
  • Ron Chernow, who penned a bestselling biography of Alexander Hamilton, will speak at next year's dinner.
Keep reading Show less