DEV Community

Fahad Hossain
Fahad Hossain

Posted on • Originally published at fa7ad.postach.io on

Hello, Blog!

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") 
Enter fullscreen mode Exit fullscreen mode

Or,

document.write('Hello, world') 
Enter fullscreen mode Exit fullscreen mode

Onto the next few language

C

#include <stdio.h> int main() { printf("%s", "Hello, world"); return 0; } 
Enter fullscreen mode Exit fullscreen mode

C++

#include <iostream> int main() { std::cout << "Hello, world" << std::endl; return 0; } 
Enter fullscreen mode Exit fullscreen mode

Go

package main import "fmt" func main() { fmt.Println("hello world") } 
Enter fullscreen mode Exit fullscreen mode

Back to some concise syntax

Python

print("Hello, world") 
Enter fullscreen mode Exit fullscreen mode

Haskell

main::IO() main = putStrLn "Hello, world" 
Enter fullscreen mode Exit fullscreen mode

ReasonML

Js.log("Hello, world"); 
Enter fullscreen mode Exit fullscreen mode

Now, the piece de resistance,

My least favourite ones

Java

public class HelloWorld { public static void main (String[] args) { System.out.println("Hello, world"); } } 
Enter fullscreen mode Exit fullscreen mode

C#

using System; namespace HelloWorld { class Program { static void Main(string[] args) { Console.WriteLine("Hello, world"); } } } 
Enter fullscreen mode Exit fullscreen mode

PHP

<?php echo "Hello, world"; 
Enter fullscreen mode Exit fullscreen mode

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

Peace ✌️

Top comments (0)