https://github.com/0tickpulse/hello-world-languages
https://github.com/0tickpulse/hello-world-languages
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/0tickpulse/hello-world-languages
- Owner: 0tickpulse
- Created: 2023-02-14T16:05:28.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-10T06:25:34.000Z (about 3 years ago)
- Last Synced: 2025-03-18T00:45:27.303Z (about 1 year ago)
- Language: C++
- Size: 60.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello world in as many languages as possible
This repository contains a collection of "Hello World" programs in as many languages as possible. This is and will always be a work in progress, and contributions are welcome.
## Why?
I wanted the opportunity to research different languages and create a project in each language. I also wanted to create a space for people to discover new languages and see a simple example of how to create a project in them.
## How to contribute
1. Fork this repository.
2. Add a "Hello World" program in a new language. It should be in a directory named after the language, and the program should log **the exact string** `Hello, World!` to the console. Make sure to include a `README.md` file following this template:
```md
# Hello world in [language]
[Describe the language]
## Prerequisites
- [Dependency 1](link to dependency 1): [Description of dependency 1]
- [Dependency 2](link to dependency 2): [Description of dependency 2]
## How to run
1. [Step 1]
2. [Step 2]
3. [Step 3]
```
### Notes
You should not necessarily use the minimum amount of code possible. Instead, use code that accurately reflects real-world usage of the language. Show things like variables and functions.
Use the proper structure for your project. For example, the JavaScript program includes a `package.json` file and a `src` directory. The Java program includes a `pom.xml` file, a `src` directory, and a `target` directory. The Python program includes a `requirements.txt` file and a `src` directory.
Use best practices. The Python program includes an `if __name__ == "__main__"` statement. Again, this is not necessary, but it is a best practice.
If there's something special about a language, use it in your program. For example, I showed how C does not have a string type by using a `char` array.