DEV Community

"Hello, World!" in 20 Popular Programming Languages

Fadi Nouh on November 11, 2021

When I start learning any programming language, the first example I get from the tutorial is : let's print "Hello World!". This exercise in every t...
Collapse
 
aminmansuri profile image
hidden_dude • Edited

Frankly we have to come up with a better intro program than "Hello World".

Long gone are the days when printing something on the terminal meant something or was exciting.

Today's basic program should be something like draw a square on the screen. Then we shift the focus towards terminal programing to something more real for this era like the browser, a window, a mobile app, or a something else. Even on the terminal it's possible.

Here's a box in logo:

repeat 4 [ fd 100 rt 90 ]

Collapse
 
lexiebkm profile image
Alexander B.K.

I wish you would include "Hello World" in Assembly language, esp for Intel 8086 family or Motorola. :)

Collapse
 
lexiebkm profile image
Alexander B.K.

The 1st programming language that gave me money would output the same result with the following :
@2, 10 say "Hello World"
:)

Sadly, now that language is extinct, like the then loved language which would produce the same result with :
Begin
writeLn("Hello World");
End

Collapse
 
lexiebkm profile image
Alexander B.K.

In stead of printing "Hello World", I write like the following :

package main
import "fmt"

func main() {
fmt.Println("I am learning Go aka Golang")
}

That is what I do with other programming language like Dart with Flutter or React Native.

Collapse
 
satyavvd profile image
satyavvd

Why #15, #16 both Perl??

Collapse
 
fadinouh1 profile image
Fadi Nouh

I fixed that , thank you for your feedback :)

Collapse
 
aminmansuri profile image
hidden_dude

Transcript show: "Hello world!".

Collapse
 
kkrypt0nn profile image
Krypton • Edited

You've forgotten the "#" on the title of the number 6 ;)
And on the number 19 it should be "Go" in the title :)

Collapse
 
fadinouh1 profile image
Fadi Nouh

I fixed that , thank you for your feedback :)

Collapse
 
mpotane profile image
mpotane

Typo number 12 word Ruby

Collapse
 
ivanilagan11 profile image
Genesis Ivan Ilagan

I think for Ruby in #12 should be:

print "Hello, World!"

:)