Have you ever used Reddit for learning a programming language? There are many subreddit detected to specific programming languages. They are great for finding project ideas, learning new topics and getting inspired. Many (if not most) programming subreddits have an active community of users who are willing to provide support to others who post submissions opening up discussions.

I’ve always wondered if it is possible to find out which subreddits are better than others in terms of user engagement and by how much. I don’t know about you but I would like to know if there is a strong chance that someone is going to reply to my query. This is quite important as this can help both moderators and discussion starters alike understand how effective communities are at engaging with others. As it turns out, I feel there is a way and the answer is discovered through reply networks.

What are reply networks?

In this blog, we introduced the notion of Reddit reply networks where simple user-to-user interactions are captured based upon replies between users. The concept is simple. A directed edge is formed between two users where one user replies to the other.

Using reply networks can help us understand meaningful connections within the network. For example, reply networks provide a window for helping us understand conversational dynamics such as the following:

The Data

To get things going, 500 of the most recent submission were collected from a total of 32 programming-related subjects. A few of these include Go, Python, Java, Javascript, C++ and many others.

For each subreddit, a reply network was produced by aggregating all of the comments from the total 500 recent submissions. If you’re interested in how these are created, I put together a blog post explaining how this is done using PRAW.

The subreddit reply networks have a combined average of 1185 nodes and 3410 edges. The complete data can be found at the end of the post.

The Results

As a result, the reply networks used in this study are quite complex as they feature many interactions. Below is an example of the r/python subreddit where nodes are coloured according to modularity and size according to eigenvector centrality.

  • Reciprocity: Helpful users are likely to reply to questions meaning that two-way reciprocated connections are important for discussion
  • Density: This is used to get an understanding of well-connected there girl discussion are.
  • Transitivity: Small communities of users (triads) are helpful for discerning strong conversations among multiple users.

Reciprocity

As mentioned earlier, reciprocity is one of the most important metrics for determining two-way conversations. The results from the study indicate that r/racket, r/matlab, r/visualbasic and r/Rlanguage are among the most highly-ranked subreddits for reciprocity.

With respect to density, r/forth, r/Delphi r/perl and r/d_language had the highest proportion of occupied edges within the network. Bearing in mind these numbers are quite small (which is often expected for density). There is a strong likelihood that these communities are much smaller than the popular ones like r/Python.

Similar to density, r/forth r/perl and r/Delphi right quite highly for transitive ties which suggests that you’re more likely to find triad-like communities in these subreddits than elsewhere. These are big clues for detecting cliques of users.

Overall I believe that the results speak for themselves. If I’m honest, I wasn’t expecting that the lesser-known subreddits such as r/forth and Delphi would have such strong results compared to the popular ones such as r/Python or r/JavaScript etc. I think this is down to a few reasons which I’ve summarised below…

Small communities

As mentioned earlier, it appears to be the smaller communities that appear to be the most popular. This makes sense considering that if you reduce the size of the community there is a strong possibility that you’re going to engage with the same user meaning that reciprocated ties and transitivity is going to be quite high.

Network design

The design of the network may have an impact on the results based upon how the discussions are modelled. Considering that we are collapsing hierarchical discussion trees as user-to-user interactions, there is a possibility that we may be missing important data which could allude to different types of conversation. For example, a reply network doesn’t consider debates between users whereas a reply tree would show the depth of the discussion.

Limited engagement

I remember reading somewhere how a very small subset of users actually engage with content produced on Reddit. A very small percentage of users actually contribute towards leaving meaningful replies for users with questions. I think this might be a factor to consider when studying these networks.

As an experiment, I thought that these results are quite interesting but I think it’s important to keep an open mind on how we model these networks going ahead. After all, this is how science advances forward.

Subreddits

If you’re interested in the numbers and the subreddits used, these are as follows…

SubredditNo. NodesNo. EdgesDensityReciprocityTransitivity
r/racket45213680.0067110.5891810.072255
r/matlab74916270.0029040.5838970.021305
r/visualbasic51917610.0065500.5792160.029903
r/Rlanguage79420030.0031810.5741390.018270
r/scheme50116040.0064030.5660850.065525
r/forth41717810.0102670.5637280.115033
r/delphi37311440.0082450.5524480.072368
r/ocaml56416350.0051490.5394500.032446
r/asm73418430.0034260.5382530.025814
r/fortran79025320.0040620.5260660.031309
r/d_language38410570.0071870.5241250.066078
r/lisp90338860.0047710.5131240.066695
r/rstats104023570.0021810.5091220.022743
r/perl61530940.0081940.5048480.101755
r/clojure73021250.0039930.4912940.040505
r/latex96324170.0026090.4898630.016770
r/lua81023890.0036460.4897450.022349
r/haskell131549390.0028580.4847140.041025
r/erlang4839130.0039220.4841180.025435
r/fsharp61320870.0055630.4829900.065214
r/Kotlin117028500.0020840.4807020.028571
r/sql141733490.0016690.4729770.018622
r/ruby94023220.0026310.4720070.036358
r/scala99033590.0034310.4650190.038037
r/c_programming157550690.0020450.4647860.031794
r/swift113423820.0018540.4643160.015414
r/rust234861250.0011110.4630200.023427
r/golang184942450.0012420.4570080.018304
r/python237041010.0007300.4535480.031596
r/php254293500.0014480.4491980.050137
r/csharp213753460.0011710.4362140.021638
r/cpp2938105210.0012190.4223930.028237
r/java245890540.0014990.4121940.047729
r/javascript266853110.0007460.3788360.019625