Logo

dev-resources.site

for different kinds of informations.

Sample Programs Repo Celebrates 1,000 Code Snippets

Published at
1/10/2025
Categories
news
contributorswanted
showdev
github
Author
renegadecoder94
Author
15 person written this
renegadecoder94
open
Sample Programs Repo Celebrates 1,000 Code Snippets

Itā€™s 2025, and weā€™re kicking off the year with some huge news! The Sample Programs repo has hit 1,000 code snippets. Letā€™s talk about them.

Table of Contents

A Brief History of the Repo

I maintain a repo called Sample Programs that first started as a 100 Days of Code challenge in 2018. Back then, I challenged myself to write a Hello World program in as many programming languages as possible, and I even turned it into a series on this site.

Over the years, the repo has evolved dramatically. For instance, one of the earliest changes was the addition of different types of programs. If I recall correctly, I added ā€œreverse stringā€ and then ā€œgame of life,ā€ the latter of which is no longer a part of the repo.

Around the same time, I started advertising the repo on dev.to to see if I could get any contributors. In the early stages, it was pretty easy to contribute because many of the popular languages, like JavaScript and C, needed contributors.

Then, I discovered Hacktoberfest, which quickly became my main way of getting help on the repo. By creating issues targeting specific holes in the repo, folks were quick to jump on them. It wasnā€™t long before I started to get some repeat contributors.

Eventually, the repo got popular enough that folks began helping expand it in new and interesting ways. For example, we put together a documentation site that would show off all the programs in the repo and even support documentation for them where needed. Likewise, some folks were interested in ensuring that all the programs of a particular type behaved identically. As a result, glotter was created to help us test all the programs.

Since the beginning, a lot has changed about the repo. As of today, there are 37 different types of programs (which we call projects) that can be implemented in the repo, all of which are automatically tested. Thatā€™s quite the change from the original ā€œHello World in Every Languageā€ challenge. In addition, the repo has amassed 154 programming languages, of which 153 are tested.

On top of all that, the repo supports a ton of automation. For instance, testing has since been upgraded to glotter2. In addition, all of the languages have READMEs, which are generated automatically to provide readers with information about which programs are still needed. Iā€™m sure there is even more that is slipping my mind at this point.

Perhaps most interestingly of all, the repo just hit 1,000 programs after about 7 years of work! In the remainder of this article, weā€™ll talk about that huge milestone.

1,000 Program Breakdown

When you consider the Sample Programs repo, itā€™s an interesting case study into which languages are popular and which languages have sort of a cult following. I say this because many of the popular languages are complete (i.e., have a program for all 37 projects) or nearly complete, yet there are some more obscure languages in a similar boat. Iā€™ll show you what I mean.

Here are some languages you would expect to have contributors, at least based on GitHubā€™s most recent annual report of the top programming languages:

  • C (26 code snippets)
  • C# (29 code snippets)
  • C++ (27 code snippets)
  • Go (29 code snippets)
  • Java (26 code snippets)
  • JavaScript (30 code snippets)
  • PHP (37 code snippets)
  • Python (37 code snippets)
  • TypeScript (23 code snippets)

Yet, there are plenty of languages that donā€™t crack the top 10 that are clearly beloved by some (or at least interesting enough to be worthy of contributions):

  • ALGOL68 (37 code snippets)
  • Beef (37 code snippets)
  • Commodore Basic (37 code snippets)
  • Euphoria (37 code snippets)
  • Haskell (20 code snippets)
  • Julia (14 code snippets)
  • Kotlin (19 code snippets)
  • Lua (13 code snippets)
  • Mathematica (26 code snippets)
  • Octave (14 code snippets)
  • Perl (18 code snippets)
  • R (10 code snippets)
  • Rust (37 code snippets)
  • Scala (11 code snippets)

And yet, there are still some popular languages that lack contributions:

  • Objective-C (11 code snippets)
  • Ruby (17 code snippets)

In addition, GitHub keeps track of the most used languages in a repo, which I assume is based on lines of code. In our case, the top languages come out to be:

  • BASIC: 11.7%
  • Beef: 9.6%
  • Rust: 7.0%
  • PHP: 6.7%
  • Mathematic: 5.0%
  • Python: 3.7%
  • Other: 55.3%

There are other statistics I could probably dig up, like most popular project to implement, but I donā€™t quite have those on hand. Maybe Iā€™ll make something more thorough when we hit 2,000 code snippets.

Looking Ahead

Itā€™s really cool to me to think that a repo I put together to challenge myself has become something much larger than myself. These days, I really donā€™t do a ton to maintain the repo. Instead, there are a ton of wonderful folks that have primarily maintained the repo in my place over the years. These folks include but are not limited to the following:

If youā€™d like to see this repo continue to grow, Iā€™d encourage you to jump in the Discord to see what ways you can help out. Itā€™s been some time since Iā€™ve cross-posted to dev.to, but I have that platform to thank for where the repo is today. As a result, if youā€™re reading this post over there, thank you for continuing to build a positive tech community.

With that said, Iā€™m going to wrap this one up. As always, if you liked this article, there are surely several more where that came frome:

Likewise, you can help support The Renegade Coder by checking my list of ways to grow the site. Over there, you will find links to the Discord, Patreon, and Newsletter. Otherwise, take care and thanks again for all the support!

contributorswanted Article's
30 articles in total
Favicon
Sample Programs Repo Celebrates 1,000 Code Snippets
Favicon
šŸš€ Calling All Innovators and Developers!
Favicon
Developers looking for charitable projects
Favicon
IESCO Bill Checking Online
Favicon
Build the Future of AP CSP with Spindle
Favicon
Open Source Unleashed: Benefits and Contributions
Favicon
AI-Powered PR Review Bot - Looking for Contributors!
Favicon
8 EASY WAYS ON HOW TO CREATE A GOOGLE MAIL (GMAIL) ACCOUNT IN 2024
Favicon
Why Watching Movies at Home is an Audio Nightmareā€”and How We Could Fix It with Smart Sound Tech
Favicon
Hacktoberfest 2024: Code, Collaborate, and Conquer!
Favicon
NPM package ā€“ community-health-files
Favicon
Why You Should Pay for Open Source
Favicon
SaaS Management System
Favicon
Implement a Global Handler for UserNotFoundException
Favicon
Enhance Your Debugging Skills by Contributing to the Journal REST API
Favicon
Introducing Vortex Linux: A Secure and Flexible Distribution in Developmentā€”Seeking Contributors!
Favicon
How to Start Contributing to Open Source: A Simple Roadmap
Favicon
Benefits of Rewarding Issues with Opire.
Favicon
Calling All Developers! Contribute to golly: Empower the Go Community Together šŸš€
Favicon
Guia para Iniciantes: Contribuindo em Projetos Open Source Passo aĀ Passo
Favicon
Ask everybody to share experiences on analytics
Favicon
šŸš€ Exciting Open-Source Opportunities in 2024! šŸŒ
Favicon
Looking for Open-source contribution opportunities
Favicon
Make your Js Components in seconds
Favicon
Starting your career with 40 commits
Favicon
A guide to your first open source contribution šŸš€āœØ
Favicon
Unleash the Magic: Conquer Hacktoberfest 2023!
Favicon
All about Hactoberfest'23
Favicon
Who's looking for open source contributors? (week 61)
Favicon
Elevate Your Hacktoberfest Experience: MindsDB's Grand Prize Bonanza!

Featured ones: