This project performs an in-depth analysis of programming language trends on Stack Overflow from 2008 onwards using R. It includes data cleaning, statistical testing, time series visualization, and exploration of language popularity over time.
Stack Overflow is one of the largest Q&A communities for programmers. This analysis focuses on understanding how the popularity of different programming languages has evolved over the years by examining the number of questions posted for each language.
- R Language
- Libraries:
tidyverselubridateggplot2dplyrforecastreadr
The dataset used contains monthly counts of Stack Overflow questions for several programming languages from early 2008. The CSV file includes columns like Date, Python, JavaScript, PHP, SQL, Java, etc.
- Checked and removed missing values
- Renamed and formatted date columns
- Filtered data from 2008 onwards
- Line plots showing trends of language popularity over time
- Year-wise and month-wise breakdown of question frequency
- T-tests to assess the impact of specific timeframes (e.g., before/after June 2020)
- Hypothesis testing for early years (2008 vs 2009)
- Linear regression to detect trend direction for Python questions
- Pie chart showing distribution of total questions per language
- Bar chart comparing total question volume by language
- Histogram and density plots for specific languages
- Boxplots for cross-language comparison
- Scatter plots and regression lines for correlation (e.g., Python vs JavaScript)
- π Time Series Plots
- π Bar Charts
- π¦ Boxplots
- π§ T-Test & Hypothesis Testing Results
- π Linear Regression Summary
- π₯§ Pie Charts
- π Histograms & Density Plots
- π Correlation Analysis via Scatter Plots
- Python has consistently grown in popularity and leads in question volume.
- JavaScript and SQL also maintain high levels of engagement.
- Some older languages like Perl and Objective-C show decline over time.
- Clear shift in question trends before and after 2020 (possibly due to ChatGPT or remote learning trends).
- Clone the repository
- Ensure you have R installed with the listed libraries
- Update the path to the dataset in the
file_pathvariable - Run the script to generate all insights and visualizations
linkedin.com/in/ayesha-zahid-4a9046301/ For questions or feedback, feel free to reach out!