“Hello World” instalabless

Hello, World!

INTRO

Hello World” is something that is associated with starting up hence since this is my first post, I prefer it to be about it.

So what’s Hello world program

“Hello, world” program is the most basic program written to display “Hello World” on a screen or any other display media.

If you have done any programming language, or just starting out to create your first program its most likely that you have encountered it. Its mostly used to introduce people who are starting out to program.

Almost if not all programming language, start with this simple program whether its Java, Python, Go, Scala, Cobol…

…there are tones of programming languages out there and what makes them interesting is that they all will give you a hello world to start your programming journey.

Definition In English

Programming Language is a program or software that helps humans to communicate with the computer. Always when studying anew language you always learn how to greet people hence when learning a new programming language you will be taught how to greet the world but through the computer itself.

So let define these two famous words

1. Hello – is a greeting, like saying hi or hola in Spanish.

2. World – is the earth, the countries and the people who live in it.

Hence “Hello, World!” is greeting people, or saying hi to the people on earth.

What is the Origin of “Hello, World”

Like me? Back then when I was just starting out on the world of programming, I used to ask myself where did this phrase come from? Then I did a search and I found out that it first appeared in Bell’s lab on the C tutorial book by Brian Kernighan.

Hello, World! In 60 and 1 Programming Languages

Python

For any Python version

import sys
sys.stdout.write("Hello, world!\n")
print “Hello, World!”

Python 3.x Hello World

print(“Hello, World!”)

Java

public class HelloWorldApp {  
    public static void main(String[] args) { 
       System.out.println("Hello,World!"); 
    }  
}

Go /Golang from Google

package main
 import "fmt"
 func main() {
   fmt.Println("Hello, world!")
 }

Javascript

a).

console.log(“Hello, World!”);

b).

alert(“Hello, World!”);

c).

document.write('Hello, World!');

C

Originally

main() 
{
   printf("hello, world<strong>\n</strong>");
}

Current

int main(void)
{
   printf("hello, world\n");
}

AutoLt

 MsgBox(0,'','Hello, world!')<br> 

C# / C sharp

using System;  
class Program
 {
     public static void Main(string[] args)
     {
         Console.WriteLine("Hello, world!");
     }
 }

C++ / Cpp

#include <iostream>  	
int main()
{
  std::cout << "Hello, World!\n";
 }

PHP

a).

 <?='Hello world'; 

b).

 <!DOCTYPE html>
 <html>
   <head>
    <title>PHP "Hello, World!" program</title>
   </head>
   <body>
    <?php echo '<span>Hello World</span>'; ?>
   </body>
 </html>

Ada

with Ada.Text_IO;
 use Ada.Text_IO; 
 procedure Hello is
 begin
   Put_Line ("Hello, world!");
 end Hello;

Visual Basic

a).

Private Sub Form_Activate()
    Print "Hello, world!"
End Sub

b).

Public Sub Main()
  MsgBox "Hello, world!"
End Sub

Shell

echo “Hello, World!” 

Scala

object HelloWorld extends App {
  println("Hello, world!")
}

Rust

fn main() {
    println!("Hello, world!");
}

Dart

a).

void main(){ print(“Hello World!”);  } 

b).

main(){print(“Hello World!”);   } 

c).

main()=>print(“Hello World!”); 

Kotlin

fun main() {
   println("Hello World!")
}

R

print('Hello, world!')

Elixir

 iex> IO.puts("Hello World!") 

Perl/ Perl 6

 print "Hello, World!\n"; 

Scheme

 (display "Hello, world!\n") 

Small Talk

 Transcript show: 'Hello, world!'. 

Julia

println("Hello, world!") 

ASP

a).

<% Response.Write("Hello, world!") %> 

b).

 <%= "Hello, world!" %>

AutoHotkey

MsgBox, Hello, world! 

Basic

a).

PRINT "Hello, world!"
END

b).

PRINT "Hello, world!"

c).

? "Hello, world!"

Lisp

(print “Hello, world!”) 

Fortran / Fortran 90/99

program hello
    write(*,*) 'Hello, World!'
end program hello

Cobol

      IDENTIFICATION DIVISION.
      PROGRAM-ID.  HELLO-WORLD.
      PROCEDURE DIVISION.
          DISPLAY "Hello, world!".
          STOP RUN.

Node.js

console.log(“Hello, World!”); 

Objective C

 // FILE: hello.m  
#import <Foundation/Foundation.h>
 int main (int argc, const char * argv[])
 {
     NSLog(@"Hello, World! \n");
     return 0;
 }

Clojure

(println "Hello, world!")

Lua

a).

print(“Hello, World!”) 

b).

print ‘Hello, World’ 

Haskell

 main = putStrLn "Hello, world!"

Ruby

puts ‘Hello, world’ 

Clean

 module hello
 Start = "Hello, world!"

Pascal

 begin 
   write('Hello, world!');
 end.

Nim

a).

echo ‘Hello, World!’ 

b).

echo(“Hello, World!”)

D

import std.stdio ;
  
 void main () {
     writefln("Hello, world!");
 }

Vala

 using GLib; 
 public int main(string[] args)
 {
       stdout.printf("Hello, world!\n");
       return 0;
}

Processing

 println("Hello, world!"); 

ABC

 WRITE "Hello, world!" 

F#

let _ = System.Windows.Forms.MessageBox.Show("Hello, world!");; 

B

mmain( ) {
   extrn a, b, c;
   putchar(a); putchar(b); putchar(c); putchar('!*n');
 }
 a 'hell';
 b 'o, w';
 c 'orld';

PostScript

 (Hello, world!\n) print 

Prolog

:- write('Hello, world!'),nl.

Windows PowerShell

a).

Write-Host "Hello, world!"

b).

echo "Hello, world!" 

Pike

 int main() {
     write("Hello, world!\n");
     return 0;
 }

ALGOL 68

 begin 
     printf($"Hello, world!"l$)
 end

Pure Basic

OpenConsole()
 PrintN("Hello, world!")
 Input()

Delphi

{$APPTYPE CONSOLE} 
 begin
   Writeln('Hello, world!');
 end.

D++

function main()   
{
     screenput "Hello, world!";
}

Chrome

namespace HelloWorld;
 
interface
 
type
  HelloClass = class
  public
    class method Main; 
  end;
 
implementation
 
class method HelloClass.Main;
begin
  System.Console.WriteLine('Hello, world!');
end;
 
end.

Swift

println("Hello, world!") print("Hello, world!") 

Stata

capture program drop hello  
 program define hello   
      di "Hello, world!"
 end
 
 hello

Groovy

println "Hello, world!" 

Batch /4DOS batch

@echo Hello World! 

SVG

<?xml version="1.0" encoding="UTF-8" standalone="no"?>   
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100">
   <text x="50" y="50">Hello, world!</text>
</svg>

Obix

system.console.write_line ( "Hello, world!" ) 

Clipper

a).

? "Hello, world!"

b).

	
 Qout("Hello, world")

Alef++

  use java.lang.*;
  main
  {
      System->out->println[ 'Hello, world!' ];
  }

Brain Fuck

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

Sources

4 thoughts on “Hello, World!”

  1. Pingback: 2 Ways: How To Install or Run Visual Studio Code on Ubuntu and Windows | INSTALLABLESS

  2. Pingback: Visual Studio Code Portable on Ubuntu and Windows | INSTALLABLESS

Leave a Comment

Your email address will not be published. Required fields are marked *

Pin It on Pinterest