I made an analytical report on  Dev!
Tags: webdev, showdev, python, meta
Published: 2020-06-20 15:13:01

For the last few days(9 to be precise) I have been collecting some public data with the help of [Dev API](https://docs.dev.to/api/). My motive behind this was to see some natural behaviors of posts and the authors at Dev. 

For that, I wrote a simple Python script that would collect the data of the top 50 dev posts each day and send it to my email at a specific time each day for 7 days a week. I deployed the script at [Heroku](https://www.heroku.com/) and started receiving the data from the very moment I deployed it. After collecting data of 9 days, I took the data of the latest 7 days and made some quick analysis.

And now, I am happy to share the data with you guys today. 

**SPOILER ALERT**: Probably the most useful piece information is in the bottom

## Relation between reactions and comments

<table>
<tr>
    <th></th>
    <th>Reactions</th>
    <th>Comments</th>
</tr>
<tr>
    <td>Maximum</td>
    <td>243</td>
    <td>45</td>
</tr>
<tr>
    <td>Average</td>
    <td>20</td>
    <td>1</td>
</tr>
<tr>
    <td>Minimum</td>
    <td>6</td>
    <td>0</td>
</tr>
</table>
<mark>Point to be noted:</mark> It's not necessary that the post with 243 reactions will have 45 comments and vice versa.

Let's see some graphs for better visualization.

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/dvpb159hig0s5n6ssbrp.png">
  <figcaption>Fig.1 - Scatter plot for total number of reactions</figcaption>
</figure>

As the table informs, the maximum post-reaction is 243, the average is about 20 and quite a small amount of posts have reactions near to 5.

Now the graph for comments.

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/tbvdu870ir3bhxlagywb.png">
  <figcaption>Fig.2 - Scatter plot for total number of comments</figcaption>
</figure>

Not a significant difference in comparison to the graph of the total number of reactions.

But the scenario changes as we combine the scatter plot for the number of reactions and number of comments together.

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/se4285zi5n3s1p8oejcy.png">
  <figcaption>Fig.3 - Scatter plot for total number of comments</figcaption>
</figure>

As you can see, the post with the highest number of reactions doesn't need to have the highest number of comments. Even, in some cases, the number of comments is more than the number of reactions.

Here is a more detailed graph chart split into days for a more comprehensive comparison. 

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/bmr63wyj9d4b1k5eb9qd.png">
  <figcaption>Fig.4 - Comments vs reactions for each days</figcaption>
</figure>

## Some neat peaky details about the post
Let's see the details in 6 different categories to answer the following 6 questions.

- Was the post cross-posted?
- Was the post edited?
- Is it a part of a series?
- Was is posted under an organization?
- Was it posted the same day it was created?
- Does it have a cover image? 😅

### 1. Was the post cross-posted?
Crossposted means, the post was published on a different website and its main origin is not from [Dev](https://dev.to). 

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/6uk792a598k8svrh0ekk.png">
  <figcaption>Fig.5 - Crossposted</figcaption>
</figure>

Wow! Almost all the posts of Dev aren't crossposted. That means people prefer to write posts at Dev rather than just copying and pasting it. Isn't that good news?

### 2. Was the post edited?

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/4gvjs99mczk206ru41ui.png">
  <figcaption>Fig.6 - Edited</figcaption>
</figure>

So, about half of the authors make some changes to their post once they are made public to read. That's interesting. Do you know what's more interesting? The pie chart looks like the logo of Pepsi. 🤣
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/fhq1gcy2bumwfmwawxfv.jpg)

### 3. Is it a part of a series?

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/4x2ghnz9a47ykwr8w52o.png">
  <figcaption>Fig.7 - part of a series</figcaption>
</figure>

I have noticed that if you are making a series of posts, your first post will get a nice amount of views(reactions) and the number will keep decreasing as the series advances. It's also true for other platforms such as [Youtube](https://www.youtube.com).

### 4. Was it posted under an organization?

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/sh0yaira25jme7wb6qs1.png">
  <figcaption>Fig.8 - Organization post</figcaption>
</figure>

### 5. Was it posted the same day it was created?
<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/lztrmgp0z9271mgttvz9.png">
  <figcaption>Fig.9 - creation</figcaption>
</figure>

So, about 79% of the authors publish the post the same day they created it. On the other hand, 21% of them took several days to complete finishing it.

### 6. Does it have a cover image? 😅
This has to be the most informative chart in this whole post !!! 😂

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/97cpmv0jijo9emu1kx5f.png">
  <figcaption>Fig.10 - Cover image</figcaption>
</figure>

## Comparing the size of the post
For this part, I have divided the post into three categories.

- Small: Takes about 5 minutes to read
- Medium: Takes about 10 minutes to read
- Big: Takes more than 10 minutes to read

To figure out the reading time, I counted the words in the post(actually my script did) then divided it by the average reading speed of an adult person(225 words per minute).

Here is what I have discovered.

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/qjp86akkb7pgia8toswh.png">
  <figcaption>Fig.11 - Post size</figcaption>
</figure>

It's quite clear like daylight, people like to read the small post as they don't take much time to finish. Though the number of big posts is less, some people like to read super informative posts.

Here is a detailed scatter plot of the same pie chart stated above.

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/cuqio6tvhcxqzci7it9i.png">
  <figcaption>Fig.12 - Post size 2</figcaption>
</figure>

Even a few posts crossed the limit of 20 minutes and there is one that will take almost 30 minutes to read. SALUTE!😉

## Publishing time
The Dev is a global community. So, activities are going on 24 hours and 7 days each week. So, it doesn't matter which timezone you are, you will still receive fresh and latest posts every hour of the day. However, not all hours are the same. So, here is a chart that indicates the number of posts being published each hour (+ GMT).

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/1v8m62ec8n7tg1hrvnoy.png">
  <figcaption>Fig.13 - Publishing time</figcaption>
</figure>

And here is another one.

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/j7i8wz2dxxhgvy9q3x5i.png">
  <figcaption>Fig.14 - Publishing time 2</figcaption>
</figure>

As both of the charts suggests, the most active time in Dev is between 13.00 (+ GMT) to 18.00 (+ GMT).

For me, it's at midnight. 😑

## Analysis of the authors
Unfortunately, for this category, there wasn't that much useful data. I still managed to answer the following question(not that useful at all)

- Does the author have Twitter?
- Does the author have Github?
- Does the author have a website?

Here are the answers. 
<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/txvar9tj416m31sqs723.png">
  <figcaption>Fig.15 - Twitter account</figcaption>
</figure>

<figure>
  <img src="https://dev-to-uploads.s3.amazonaws.com/i/zypo6wdmmz2j9kzi6f54.png">
  <figcaption>Fig.16 - Github account</figcaption>
</figure>

<figure>
<img src="https://dev-to-uploads.s3.amazonaws.com/i/stxr30np4wqcepemnl7o.png">
  <figcaption>Fig.17 - Website</figcaption>
</figure>

## Analysis of top 5 tags
Now my favorite part of the whole report. The usage of tags. This can be visualized in 5 perspectives. 

- Total number of reaction
- Total number of comments
- Total number of average reactions
- Total number of average comments
- How many times it was used

### 1. According to the total number of reactions
<figure>
<img src="https://dev-to-uploads.s3.amazonaws.com/i/ql2xw1t90rq2uw3qpue9.png">
  <figcaption>Fig.18 - Sorted according to reactions</figcaption>
</figure>
As always, Javascript leads. After all, Javascript is the most famous language.

### 2. According to total number of comments
<figure>
<img src="https://dev-to-uploads.s3.amazonaws.com/i/03z8jzr0ex1esgs6resq.png">
  <figcaption>Fig.19 - Sorted according to comments</figcaption>
</figure>
You know the reason why `discuss` is the top tag! 😁

### 3. According to average number of reactions
<figure>
<img src="https://dev-to-uploads.s3.amazonaws.com/i/5i5yrfozpk5nadwzykoh.png">
  <figcaption>Fig.20 - Sorted according to average reactions</figcaption>
</figure>
We can clearly see the effect of current event, web monetization(I love it!)

### 4. According to average number of comments
<figure>
<img src="https://dev-to-uploads.s3.amazonaws.com/i/bjwh12l1se40qvfajj04.png">
  <figcaption>Fig.21 - Sorted according to average comments</figcaption>
</figure>
I was expecting `discuss` to take the lead.

### 5. According to total number of appearance
<figure>
<img src="https://dev-to-uploads.s3.amazonaws.com/i/5i5yrfozpk5nadwzykoh.png">
  <figcaption>Fig.22 - Sorted according to number of appearance</figcaption>
</figure>


So, wanna go viral? Write a post using the `javascript` tag! 😆
**JUST KIDDING!** It's not the tags you use but the quality of your content which matters the most.

You can access(contribute if possible) all the raw data from this Github repo. 

{% github https://github.com/Muhimen123/Dev-Data %}

We have come to the end. This was all I have to offer to you guys this week. I hope the information was somewhat useful if not helpful to you. Let me know in the comment section what you think about the report and whether you want to see this kind of report each week or not.

Until next time, happy coding. 😀