HELLO WORLD, SAY “HELLO” TO DOLLY
We start learning C programming language by making the computer display “hello”. What are the other programming languages that begin with displaying “hello”. Is that a coding tradition? If so who started is furst?
Yes, displaying “Hello, World!” is a common tradition in many programming languages. It’s often the first program that beginners write when learning a new language. This tradition helps new programmers understand the basic syntax and structure of the language. Here are some other programming languages that also start with a “Hello, World!” program:
Python: print(“Hello, World!”)
Java:
java
public class HelloWorld {
public static void main(String[] args) {
System.out.println(“Hello, World!”);
}
}
JavaScript: console.log(“Hello, World!”);
Ruby: puts “Hello, World!”
Go:
go
package main
import “fmt”
func main() {
fmt.Println(“Hello, World!”)
}
Swift: print(“Hello, World!”)
The tradition of starting with a “Hello, World!” program is believed to have been popularized by the book “The C Programming Language” by Brian Kernighan and Dennis Ritchie, published in 1978. The book used a “Hello, World!” program as an example to introduce the basic syntax of C, and it has since become a standard practice in programming education.
If you have more questions or need further information, feel free to ask!
I was more iterested in earlier programming languages, before C. And which language started it first.
The tradition of starting with a “Hello, World!” program is widely attributed to the C programming language, popularized by the book “The C Programming Language” by Brian Kernighan and Dennis Ritchie, published in 1978. However, the concept of a simple introductory program existed before C.
One of the earliest known instances of a “Hello, World!”-like program can be traced back to the BCPL (Basic Combined Programming Language) in the 1960s. BCPL was a precursor to the C language, and it included a simple program to print a message to the screen.
Here’s an example of a “Hello, World!” program in BCPL:
bcpl
GET “LIBHDR”
LET START() = VALOF
{
WRITES(“Hello, World!*N”)
RESULTIS 0
}
This tradition has since been adopted by many programming languages as a way to introduce beginners to the basic syntax and structure of the language.
If you have more questions or need further information, feel free to ask!
Message Copilot