DEV Community

Maciej Budzyński
Maciej Budzyński

Posted on

Which programming language to choose at the beginning, i.e. multi-Hello World

Are you thinking about choosing a programming language? You have no idea which one to choose? Then this post is for you. I have prepared short descriptions of various programming languages and the basic code of the Hello World program.

This article was translated from Polish using Google Translate. The original post can be found on my blog at https://blog.budzynskimaciej.pl.

Golang

package main
import "fmt"
func main(){
    fmt.Printf("Hello World\n")
}
Enter fullscreen mode Exit fullscreen mode

Statically typed, multi-paradigm programming language developed by Google employees Robert Griesemer, Rob Pike, and Ken Thompson in 2009. It has a built-in Garbage Collector. It significantly facilitates concurrent programming thanks to the so-called GoRutines. Functions can return more than one result. Unfortunately, Go 1.10 does not currently support generics.

JavaScript

console.log("Hello World");
Enter fullscreen mode Exit fullscreen mode

Frontend language. Required when writing web applications. It is used to create interactive views on web pages. Dynamically typed (duck-typing), a multi-paradigm, prototyping programming language developed by Netscape in 1995. Thanks to its server implementation, NodeJS has a huge library of frameworks, including Angular from Google and React from Facebook.

Java

class Hello{
    public static void main(){
        System.out.println("Hello World");
    }
}
Enter fullscreen mode Exit fullscreen mode

A fully object-oriented, statically typed language. Currently, it is one of the most popular programming languages in which you can find a job without major problems. Created in 1995 by Sun Microsystems. Its main application is enterprise-class web applications. It is often used with Spring Framework for application development. Java was created with architecture independence in mind, so we can run it on any machine with a Java virtual machine.

C Sharp

class HelloWorld
{
    static void Main()
    {
        System.Console.WriteLine("Hello, World!");
    }
}
Enter fullscreen mode Exit fullscreen mode

Microsoft's answer to Java. Also designed as a fully object oriented, statically typed programming language. It has many elements of C ++ and Java. The .NET virtual machine can be run on many systems, mainly due to .NET Core

C

#include <stdio.h>

main()
{
    printf("Hello World!\n");
}
Enter fullscreen mode Exit fullscreen mode

One of the oldest languages, currently used to write microcontrollers. Currently, it is also used in the development of the Linux kernel. It has no classes, but is small and can compile on any platform. It is a statically typed language.

C++

#include <iostream.h>

int main()
{
    cout << "Hello World!";
    return 0;
}
Enter fullscreen mode Exit fullscreen mode

Improved C, has classes, templates (generics), inheritance mechanisms. Basically this is C on steroids. Used where the speed of our applications counts.

Python

print("Hello World")
Enter fullscreen mode Exit fullscreen mode

Dynamically typed and interpreted language. Very easy to learn, it is used in many areas of computer science, from simple scripts, through websites (using the Django or Flask frameworks), to Artificial Intelligence (Machine Learning, Deep Learning). Thanks to dynamic typing, we can not worry about specifying the data type, unfortunately because it is an interpreted language, we will not be able to detect errors before starting the application, and the performance of our applications will not be as good as in the case of applications written in C or C ++ (it all depends on the algorithm used) .

Ruby

puts 'Hello, world!'
Enter fullscreen mode Exit fullscreen mode

Like Python, it is a dynamically typed and interpreted language. Currently, its main use is WebDev thanks to the Ruby on Rails framework, which allows for rapid prototyping and writing web applications. Ruby on Rails itself has a scaffolding mechanism for our applications (Scaffolding), thanks to which we can create a simple website using databases, views and controllers in a few minutes.

PHP

<?php echo '<p>Hello World</p>'; ?> 
Enter fullscreen mode Exit fullscreen mode

A language considered by many to be dying out, intended exclusively for WebDev. Nevertheless, it is still very popular thanks to a CMS called Wordpress, which was written in PHP. Wordpress itself does not require knowledge of PHP, but writing add-ons may require knowledge of PHP.

Haskell

main = putStrLn "Hello World"
Enter fullscreen mode Exit fullscreen mode

A language with the functional programming paradigm. Perfect for learning just this programming style. I was not allowed to use it, so I will not write much about it.

Malbolge

(=<`$9]7<5YXz7wT.3,+O/o'K%$H"'~D|#z@b=`{^Lx8%$Xmrkpohm-kNi;gsedcba`_^]\[ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543s+O<oLm
Enter fullscreen mode Exit fullscreen mode

Top comments (5)

Collapse
 
guithomas profile image
Guilherme Thomas

Nice! I will add Rust:


fn main() {
println!("Hello World!");
}

And from rust-lang :

Rust is blazingly fast and memory-efficient: with no runtime or garbage collector, it can power performance-critical services, run on embedded devices, and easily integrate with other languages.

And why not a example in Brainfuck


-[------->+<]>-.-[->+++++<]>++.+++++++..+++.[--->+<]>-----.---[->+++<]>.-[--->+<]>---.+++.------.--------.

Brainfuck is designed for extreme minimalism and leads to obfuscated code, with programs containing only eight distinct characters.

Collapse
 
raibtoffoletto profile image
Raí B. Toffoletto

SH

echo "Hello World"
😁

Collapse
 
codewander profile image
codewander

Elm

Collapse
 
kenjidoom profile image
KenjiDoom • Edited

newbies always go python!!! :)

Collapse
 
johncenahuang profile image
John Huang

True!