YouTube’s most and least favourite coding languages

Aug 23, 2023 · 2 min read

Which programming language is most favourably received among YouTubers?

Grades 6 - 12

Natural Language Processing (NLP), a computer science and linguistics subfield, aims to help computers comprehend human languages.

Central to NLP is sentiment analysis: the process of figuring out whether a piece of text expresses positive, negative, or neutral feelings.

We gauged YouTubers' preferred coding language by performing a sentiment analysis on comments from the platform's top ten programming tutorial videos. The results of this analysis are visualized below.

To answer our question we:

  • Collected data from YouTube API (YouTube API)
  • Examined the top 10 most-watched tutorial videos on popular programming languages C, Java, and Python
  • Collected the top 300 comments from each video
  • Ran a sentiment analysis on these comments

Visualizing the data

The radar graph below illustrates how YouTubers feel about C, Java, and Python, three of the most popular coding languages.

The graph shows that Python has the highest positive score, making it the most positively perceived programming language among YouTubers. Java is a close second, while C is notably less positively received than the other two.

Next we wanted to explore what it means to be 'positively perceived'. Are 'positively perceived' programming languages generally easier to pick up? To answer this question, we investigated the number of times the words "easy,” “difficult,” or “challenging” appeared in the collected comments.

The bar graph indicates that the term "easy" is most commonly associated with Python, while the words "difficult" or "challenging" are most commonly associated with C.

Based on these findings, we can presume that programming languages which are simpler to learn are likely to be viewed more positively by YouTubers.

Reflect on what you see

Look and interact with the data visualizations above. When you hover your mouse over the plots, you’ll notice more information appears. You can also use the legend to make plots appear and disappear.

Think about the following questions.

  • What do you notice about these graphs?
  • What do you wonder about the data?

Use the fill-in-the-blank prompts to summarize your thoughts.

  • “I used to think _______”
  • “Now I think _______”
  • “I wish I knew more about _______”
  • “These data visualizations remind me of _______”
  • "I really like _______”

Learn how we visualized the data

Go to our walk-through (in Jupyter notebook format) to see how the data science process was applied to create these graphs, from formulating a question to gathering the data and analyzing the data with code.

Authors
Building tomorrow’s digital leaders
Developing data science tools for Canadian K12 classrooms