Sample Programs in Every Language

Published on 15 March 2018 (Updated: 13 October 2024)

Welcome to Sample Programs in Every Language, a collection of code snippets in as many languages as possible. Thanks for taking an interest in our collection which currently contains 1095 articles written by 235 authors.

If you'd like to contribute to this growing collection, check out our contributing document for more information. In addition, you can explore our documentation which is organized by project and by language. If you don't find what you're look for, check out our list of related open-source projects. Finally, if code isn't your thing but you'd still like to help, there are plenty of other ways to support the project.