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!

news Article's
30 articles in total
News provides up-to-date information and insights on current events, trends, and developments in various fields.
Favicon
The Ultimate PHP QR Code Library
Favicon
Image Recognition Trends for 2025
Favicon
3..2..1ā€¦ AWS aterriza en MĆ©xico šŸš€ šŸ‡²šŸ‡½
Favicon
How RapidFeedback solved my feedback problem and can help you build Better Products
Favicon
Tech Spotlight: Daily Tech News
Favicon
RCDD Certification: Fast Track to Success in Telecom Design
Favicon
Fintech Partnership Streamlines Banking Data Integrations šŸš€
Favicon
2024 Product Release Highlights
Favicon
The Ultimate Guide to Trusting QuickBooks in Your Browser for Business Efficiency
Favicon
Sign up to our bug bounty platform!
Favicon
Whatā€™s Behind the U.S. Claims That TikTok Shares American User Data with China?
Favicon
Perl šŸŖ Weekly #703 - Teach me some Perl!
Favicon
Discover the Best of JavaScript with Best of JS
Favicon
Men, Mental Health, and Equality: Breaking Stereotypes
Favicon
Programming and Doodles: An Introduction
Favicon
Iniciando nuevamente...
Favicon
Noor JS The New JavaScript UI library
Favicon
Exploring TypeScript Support in Node.jsĀ v23.6.0
Favicon
Chrome starts to look cute now with its new Chrome MV
Favicon
COVID-19: 5 Years Later - Is the World Ready to Combat a New Pandemic?
Favicon
Newwz.Space | 50 items of Jan 15, 2025
Favicon
Does DeepSeek contain malicious malware?
Favicon
1-Year Interior Design Course in Bangalore ā€“ Master Design Skills with Eduleemā€™s Expert Training
Favicon
Sample Programs Repo Celebrates 1,000 Code Snippets
Favicon
Digital Signage: Your Key to Captivating Customers
Favicon
Game Dev Digest ā€”ā€ŠIssue #264 - Game Dev Insights: AI Tools, VFX, Optimization & Tutorials
Favicon
White Label Chat Platform for 2025
Favicon
šŸš€ I have released Eurlexa!!! EU Regulation at Your Fingertips!
Favicon
AI in Your Hands: Nvidiaā€™s $3,000 Supercomputer Changes Everything
Favicon
Difference Between Webflow and Webflow Agency

Featured ones: