Thank you for your interest in contributing to the hello-world-in-every-language repository! We appreciate your help in expanding our collection of Hello World programs from around the world.
This repository is participating in Hacktoberfest 2024! By contributing here, you can submit your Pull Requests (PRs) and earn your Hacktoberfest rewards. Follow the steps below to contribute:
Here is a step-by-step guide to help you contribute to this repository:
Click on the "Fork" button at the top-right corner of this repository to create a copy of this repo under your own GitHub account.
Once you’ve forked the repo, clone it to your local machine so you can work on it:
git clone https://github.com/handikatriarlan/hello-world-in-every-language.git
cd hello-world-in-every-language
Create a new branch where you'll add your changes:
git checkout -b add-hello-world-<language>
Replace <language>
with the programming language you contributed, like add-hello-world-python
.
Create a new folder (if necessary) or add your Hello World program to an existing folder. For example, to add a Python Hello World program:
- Navigate (or create new folder) to the
contributions/python/
folder. - Create a new file named
hello_world.py
with the following content:print("Hello, World!")
Make sure the file follows the naming convention: hello_world.<extension>
, and is placed inside the respective language folder.
If a Hello World program for that language already exists, you can still contribute by adding a new version. In this case, follow the naming convention hello_world_2.<extension>
, hello_world_3.<extension>
, and so on.
For example, if hello_world.py
already exists in Python, you can create hello_world_2.py
for the second contribution.
Note: While it's possible to add duplicate entries in the same language, it's better to contribute a Hello World program in a new language if possible.
After you’ve added your code, commit your changes. Be sure to write a clear commit message explaining what you’ve done:
git add .
git commit -m "Add Hello World in <language>"
Replace <language>
with the programming language you contributed.
git push origin add-hello-world-<language>
Replace <language>
with the programming language you contributed.
Go to your forked repository on GitHub, and you'll see a Compare & pull request button. Click it and provide a clear title and description of your PR.
For example:
- Title: Add Hello World in Python
- Description: Added hello_world.py file that prints "Hello, World!" in Python.
Once you've submitted your PR, wait for it to be reviewed and merged. After your PR is merged, it will count towards your Hacktoberfest contributions!
- Each PR should contain only one Hello World program in a unique language.
- If a Hello World program for a language already exists, feel free to add another version by following the naming convention
hello_world_2.<extension>
,hello_world_3.<extension>
, etc. - We recommend contributing to a new programming language whenever possible to help expand the diversity of languages in the repository.
- Ensure the code is simple and prints "Hello, World!" correctly.
- Follow the naming convention:
contributions/language/hello_world.<extension>
. - Avoid making trivial changes that could be marked as spam.
Thank you for contributing to this project, and happy coding! 🎉