[W] FEED STUFF ABOUT

Helloww Worldd!

Lets say hellow World in 28 languages!

what i expect.

First thing first, have patience. we will go through a lot of Programming languages.
For the sake of simplicity and Scope I am presuming you know the below listed things at least to some Extent :-


Github Trends

GitHubTrends

When you want to get accurate datasets of actual usage of programming languages, there is no place better than good old GitHub.
As it is one of the biggest Git Platform out there.

Below i have provided the top 10 Programming language Trends Graph and a list format, this graph is from a popular GitHub.io site madnight

Javascript is the clear winner with python following and java on third(maybe because of recent boost in Minecraft Development).
But these figures are the usage of a language, it doesn't means that the language at number one will best suit your application, So How to Choose ?


How to Choose?

Asking what is the ultimate language is really a #noobmove.
See it all boils down to the usecase, There are so many parameters to filter down programming languages, from High level and Low Level languages to quick Dev to Agile Dev to bla bla blaa... It Keeps Going!
I really dont want to over complicate things specially if you are just getting started with programming or dont have much experience in it.
So, i have created this check list that you might find handy to check before you go for a new or your first language.

yehhh, i would highly suggest to get the third one down first, Coz it is going to be a frustrating journey.
And for the second one i would say its a clever idea to have a project you wanna do with the language, not only it will give you a support Pillar to stay motivated, It will also give you good practice in the usage of the language.

With all that out of the way,,

Lets Get this Over With!

C

C is one of the oldest Programming Language Sticking around from 1970s (History), and to this day it is quite popular for a number of applications.
C is also called Gods Programming Language.
FunFact ;- Unix was written entirely in C (an Entire Operating System in just one Language!! From Drivers to Interface everything)
C is a Low level Language, which means code written in C is really fast to Compile. This is one of the reasons it is widely used for writing device drivers, BIOS systems, Firmwares, Embedded Development, ETC.
Writing Hellow World in C is really the trend-setter for writing hellow world as the first program while learning any programming language :)
you will need GCC compiler to compile your code on unix, most likely your system has it installed already, you can quickly verify that on the terminal by giving gcc --version command. It will return your GCC version, if it doesn't then you need to download GCC yourself (Download from here).

Code..
#include <stdio.h>
int main() {
   printf("Helloww Worldd!");
   return 0;
}

^

Want more Explaination about the code ?? Code Explained

The output for all the code is going to be Helloww Worldd! so i am not bothering with writing it down everytime..
The extension for a C file is .c, Save the above code in a file lets name it hell.c. now in the terminal Go navigate to the Directory with hell.c and run this command :

gcc -o hell hell.c

The above command will create a executable/ Object file of hell.c by name hell, Now if you do a ls it will show you 2 files hell.c & hell now Do this :

./hell

this should have printed Helloww Worldd!


C++

Code..
#include<iostream>  
using namespace std; 
int main() { 
    cout<<"Helloww Worldd!";       
    return 0; 
}

^

Want more Explaination about the code ?? Code Explained


The extension for a C++ file is .cpp, again the process is almost identical to C, save file as hell.cpp and run this command in the file directory :

g++ -o hell hell.cpp

now run the executable/ Object file by:

./hell

Output will be: Helloww Worldd!



C#

Code..
using System;
class Hello
{
    static void Main(string[] args)
    {
        Console.WriteLine("Helloww Worldd!");
    }
}

^

Want more Explaination about the code ?? Code Explained


C# file Extension is .cs, save file as hell.cs.
Now for compiling C# code we need the .net Compiler if you are on windows you just need Visul studio and it will automatically take care of it all. However, on Linux or Mac you need to install Mono which is a unix implementation of .net, the packages you need are mono-complete and mono-devel, you can download and install it from mono-Project.com.
Once all set, do :

mcs hell.cs

this will create a .exe (executable file ). On windows you can run it directly but on linux we can run it by :

mono hell.exe

Output will be: Helloww Worldd!


Python

Code..
print("Helloww Worldd!")

^

Want more Explaination about the code ?? Code Explained


We have 2 Major versions of Python one is 2.x normally called Python27 / Python24 / Python2 and another is 3.x normally called Python3. For our Examples we will use Python3 ( specifically 3.8.2 ) as it is the Latest version avilable.
you can Download python from its official Site Listed above.
Python file Extension is .py, save file as hell.py and Do :

Python3 hell.py

Output will be: Helloww Worldd!



php

Code..
<?php
echo "Helloww Worldd!";
?>

^

Want more Explaination about the code ?? Code Explained


Now for php You need to have a webServer setup with servertools (php,mysql), for that i will highly Recommend using Xampp as it sets all up without any hassle, you can download it from apachefriends.org.
Once all set just save the code as hell.php as the file Extension for php is .php. Put the file in the webserver hosted Directory, then just open up the browser and you can see it at this address :

http://localhost/hell.php

Output will be: Helloww Worldd!



Java

Code..
class Hell{  
    public static void main(String args[]){  
     System.out.println("Helloww Worldd!");  
    }  
} 

^

Want more Explaination about the code ?? Code Explained


For executing Java code you need to have the java compiler openjdk & java-devel installed on your system you can download it form there official website.
Once you have it installed properly save the code as hell.java as java's file Extension is .java, After that Do :

javac hell.java

This will create a java Class File (Hell.class) which is a type of byteCode that is now executable via :

java Hell

Output will be: Helloww Worldd!



Javascript

Code..
console.log('Helloww Worldd!');

^

Want more Explaination about the code ?? Code Explained


There are 2 ways of Executing Javascript, Either we can compile in using Node.js or we can run it in the browser as a part of HTML file.
we will use the Node.js method, you can download it from the link provided for Nodejs. Once all set save the Code as hell.js as .js is the extension for Javascript.
Once all Done Do :

node hell.js

Output will be: Helloww Worldd!



TypeScript

Code..
console.log("Helloww Worldd!");

^

Want more Explaination about the code ?? Code Explained


For Executing TypeScript we will need Node.js, Also we will need to install typescript Compiler that we can install by the Node Package Manager NPM using Command :

npm install -g typescript

Save the Code as hell.ts as .ts is the File Extension for typescript.
Once done Do :

tsc hell.ts

This will generate a hell.js file that now we can execute via Node as a javascript file :

node hell.js

Output will be: Helloww Worldd!



CoffeeScript

Code..
console.log 'Helloww Worldd!'

^

Want more Explaination about the code ?? Code Explained


For Executing CoffeeScript we need Node.js to install Coffeescript Compiler using Node Package Manager NPM using Command :

npm install -g coffee-script

Save the Code as hell.coffee as .coffee is the File Extension for CoffeeScript.
Once done Do :

coffee hell.coffee

Output will be: Helloww Worldd!



Lua

Code..
print("Helloww Worldd!")

^

Want more Explaination about the code ?? Code Explained


we will need the Lua compiler which you can download form lua.org.
Save the Code as hell.lua as .lua is the File Extension for Lua.
Now Do :

lua hell.lua

Output will be: Helloww Worldd!



Ruby

Code..
puts "Helloww Worldd!"

^

Want more Explaination about the code ?? Code Explained


On Unix enviroment Ruby is pre installed for windows you will need to downlod it from its official site.
Save the Code as hell.rb as .rb is the File Extension for Ruby.
Do :

ruby hell.rb

Output will be: Helloww Worldd!



Cobol

Code..
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLOWRD.

PROCEDURE DIVISION.
DISPLAY "Helloww Worldd!".
STOP RUN.

^

Want more Explaination about the code ?? Code Explained


Standard Procedure download and install cobol compiler, Unix like systems have it already,
Save the Code as hell Cobol has no file Extension.
Do :

cobc -free -x -o hell-exe hell

This will create a Hell-exe file that is now directly Executable by :

./hell-exe

Output will be: Helloww Worldd!



Perl

Code..
#!/usr/bin/perl 
  use strict; 
  use warnings; 
  print("Helloww Worldd!\n");

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.pl as .pl is the File Extension for Perl.
Do :

perl hell.pl

Output will be: Helloww Worldd!



Pascal

Code..
Program HelloWorld(output);
begin
  writeln('Helloww Worldd!');
end.

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.p as .p is the File Extension for Pascal.
Do :

pc hell.p

Output will be: Helloww Worldd!



Scala

Code..
object hell {
    def main(args: Array[String]) = {
        println("Helloww Worldd!")
    }
}

^

Want more Explaination about the code ?? Code Explained


Once you have installed Scala, Save the Code as hell.scala as .scala is the File Extension for Scala.
Do :

scalac hell.scala

This will create two Class File just like in java (hell$.class & hell.class) its the byteCode file that we can now execute via :

scala Hell

Output will be: Helloww Worldd!



Go

Code..
package main
import "fmt"
func main() {
    fmt.Println("Helloww Worldd!")
}

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.go as .go is the File Extension for Go.
Do :

go run hell.go

Output will be: Helloww Worldd!



R

Code..
String <- "Helloww Worldd!"
print (String)

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.R as .R is the File Extension for R.
Do :

Rscript hell.R

Output will be: [1] "Helloww Worldd!"



Rust

Code..
fn main() {
    println!("Helloww Worldd!");
}

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.rs as .rs is the File Extension for Rust.
Do :

rustc hell.rs

This will generate hell binary file that now we can execute as :

./hell

Output will be: Helloww Worldd!



Scheme

Code..
(display "Helloww Worldd!")

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.scm as .scm is the File Extension for Scheme.
Do :

csi -s hell.scm

Output will be: Helloww Worldd!



Erlang

Code..
-module(hell).
-import(io,[fwrite/1]).
-export([start/0]).
start() ->
   fwrite("Helloww Worldd!\n").

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.erl as .erl is the File Extension for Erlang.
Do :

erlc hell.erl

this will generate a hell.beam file.
Do :

 erl -noshell -s hell start -s init stop

Output will be: Helloww Worldd!



Elixir

Code..
IO.puts "Helloww Worldd!"

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.exs as .exs is the File Extension for Elixir.
Do :

elixir hell.exs

Output will be: Helloww Worldd!



Haskell

Code..
main = putStrLn "Helloww Worldd!"

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.hs as .hs is the File Extension for Haskell.
Do :

 ghc -o hell hell.hs

it will create a hell Binary file that we can directly Execute by :

./hell

Output will be: Helloww Worldd!



Shell

Code..
#!/bin/sh
echo Helloww Worldd! 

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.sh as .sh is the File Extension for shell.
Do :

./hell.sh

Output will be: Helloww Worldd!



PowerShell

Code..
Write-Host "Helloww Worldd!"

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.ps1 as .ps1 is the File Extension for PowerShell.
Now open up the PowerShell. Before executing the script, we need to tweak the Exexution Policy by doing :

Set-ExecutionPolicy RemoteSigned

Once its done Do :

& "hell.ps1"

Output will be: Helloww Worldd!



Matlab

Code..
disp('Hello, World!');

^

Want more Explaination about the code ?? Code Explained


Just Copy and Paste the Code in the Matlab shell it will output : Helloww Worldd!



Groovy

Code..
print "Helloww Worldd!\n"

^

Want more Explaination about the code ?? Code Explained


Save the Code as hell.groovy as .groovy is the File Extension for Groovy.
Do :

groovy hell.groovy

Output will be: Helloww Worldd!



X86 Assembly

Code..
section	.text
   global _start    
	
_start:	            
   mov	edx,len    
   mov	ecx,msg     
   mov	ebx,1       
   mov	eax,4       
   int	0x80        
	
   mov	eax,1       
   int	0x80        

section	.data
msg db 'Helloww Worldd!', 0xa  
len equ $ - msg     

^

Want more Explaination about the code ?? Code Explained


You will need nasm assembler to interpret your assembly code, you can download it from nasm.us
Save the Code as hell.asm as .asm is the File Extension for Assembly.
Do :

nasm -f elf hell.asm

This will create a object file by the name hell.o, Last step will be to link this object file to create a Executable,
Do :

ld -m elf_i386 -s -o hell hell.o

Now if there are no errors, then it will create a binary file by the namehell, you can directly execute it by :

./hell

Output will be: Helloww Worldd!



BrainFuck

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

^

Want more Explaination about the code ?? Code Explained


There are a number of interpreters for Brainfuck, the one we are using is written in python and you can download it from here. Save the Code as hell.b as .b is the File Extension for BrainFuck.
Do :

brainfuck.py hell.b

Output will be: Helloww Worldd!



How to Learn to code.?

Lets Get this Over With!

×