Skip to content

codebiet/helloworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello, World! 👋

This repo contain "Hello, World!" program written in various modern day programming languages. A "Hello, World!" program generally is a computer program that outputs or displays the message Hello, World! Such a program is very simple in most programming languages, and is often used to illustrate the basic syntax of a programming language. It is often the first program written by people learning to code. It can also be used as a sanity test to make sure that a computer language is correctly installed, and that the operator understands how to use it. [Source: Wikipedia]

Output

Output of all the programs on the standard console will be:

Hello, World!

History

According to Chuck Herbert on Stackoverflow:

Brian Kernighan actually wrote the first "hello, world" program as part of the documentation for the BCPL programming language developed by Martin Richards. BCPL was used while C was being developed at Bell Labs a few years before the publication of Kernighan and Ritchie's C book in 1972.

As part of the research for a book I was writing about the Alice programming environment, I corresponded with both Prof. Kernighan at Princeton and Martin Richards at Cambridge (when I was teaching a seminar there in the 1990’s). They helped me to track the first documented use of code to print the message "Hello, World!” Brian Kernighan remembered writing the code for part of the I/O section of the BCPL manual. Martin Richards -- who seems to have a treasure trove of notes, old documents, etc. -- found the manual and confirmed that this was the original appearance of the program. The code was used for early testing of the C compiler and made its way into Kernighan and Ritchie's book. Later, it was one of the first programs used to test Bjarne Stroustrup's C++ compiler.

It became a standard for new programmers after it appeared in Kernighan and Ritchie, which is probably the best selling introduction to programming of all time.

Contribution

If you want to add more "Hello, World!" program to this repo in other modern day programming languages, then follow these steps:

  1. Fork this repo to your GitHub account.
  2. Clone the forked repo on your local computer.
  3. Move to the forked repo and create Programming Language name directory inside it. //Ex: SWIFT
  4. Create a file with name helloworld with appropriate extension required for the programming language. //EX: helloworld.swift
  5. Write a program which will print Hello, World! to the standard console using choosen language and test it by running on your local computer for the described output.
  6. Stage your changes and make commits on your local computer.
  7. Push these commits to your forked repo on GitHub.
  8. Make a Pull Request to this "helloworld" repo.