loading...

Hello, Blog!

fa7ad profile image Fahad Hossain Originally published at fa7ad.postach.io on ・1 min read

Once again, I’ve switched blogging platforms.

I’ve switched between {WordPress, Ghost, Jekyll, Medium, Hexo} and now this is Postach.io (or dev.to)

So...

Hello, World!

Lets try to make a bunch of "Hello, world" programs in as many languages as I can 🙃

Let’s start with my favourite language, JavaScript

console.log("Hello, world")

Or,

document.write('Hello, world')

Onto the next few language

C

#include <stdio.h>





int main() {

 printf("%s", "Hello, world");

 return 0;

}

C++

#include <iostream>

int main() {

 std::cout << "Hello, world" << std::endl;

 return 0;

}

Go

package main

import "fmt"





func main() {

 fmt.Println("hello world")

}

Back to some concise syntax

Python

print("Hello, world")

Haskell

main::IO()

main = putStrLn "Hello, world"

ReasonML

Js.log("Hello, world");

Now, the piece de resistance,

My least favourite ones

Java

public class HelloWorld {

 public static void main (String[] args) {

 System.out.println("Hello, world");

 }

}

C#

using System;



namespace HelloWorld {

 class Program {

 static void Main(string[] args) {

 Console.WriteLine("Hello, world");

 }

 }

}

PHP

<?php

echo "Hello, world";

That’s about all I could think of. This post is nothing but a test to see what a blog post looks like.

Peace ✌️

Posted on by:

fa7ad profile

Fahad Hossain

@fa7ad

javascript evangelist, fp supremacist, caffeine junkie... in short, a software engineer

Discussion

markdown guide