DEV Community

Cover image for Hello World!πŸ‘‹
Augustine Ikenwa
Augustine Ikenwa

Posted on

Hello World!πŸ‘‹

HEADS UP: This is my first time writing a tech article/post just in case you find it boring or not helpful, please bear with meπŸ™. I will get better with time πŸ’ͺ

I have visited many websites and watched/read twice as many tutorials trying to learn how to write code in the past and almost every site starts with a simple Hello world! that logs in the console or terminal of the programmer's IDE (Integrated Development Environment). Most programming languages have their syntax for writing this simple but interesting line of code, some languages go as far writing multiple lines of code just to print a simple Hello world!

Here's how this simple line of code is written in different programming languages:

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

JavaScript, popularly known as JS, was created by Brendan Eich and was initially called LiveScript before it was renamed to JavaScript in December 1995. JavaScript is one of the core programming languages that powers the World Wide Web alongside HTML and CSS and over 95% of dynamic websites on the internet are built using JavaScript as it can be run and processed in the client's browser.

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

TypeScript a superset of JavaScript was developed and is currently maintained by Microsoft. It is designed for the development of large applications and transpiles to JavaScript and can also be used in the development of JavaScript applications for client-side and server-side execution.

#include <stdio.h>

int main() {
  printf("Hello world!");
  return 0;
}
Enter fullscreen mode Exit fullscreen mode

C was created by Dennis Ritchie and first appeared in 1972 and it remains widely used and influential till tomorrow. C was developed for use in programming operating systems, device drivers and protocol stacks. It is also used in computer architectures ranging from supercomputers to microcontrollers and embedded systems.

#include <iostream>

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

C++ was created and designed by the Danish scientist, Bjarne Stroustrup in 1985 as an extension of C. C++ is a general-purpose programming language that is built based on C but with classes and object-oriented programming features. It plays an integral role in the architecture of MacOS and WindowsOS and is one of the most-widely used programming languages used in video game development, desktop applications, servers, etc.

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

C#, pronounced as "see sharp", is a general-purpose, multi-paradigm programming language created by another Danish scientist, Anders Hejlsberg from tech giant, Microsoft in 2000. C# runs on the .NET framework and it encompasses static typing, strong typing, lexically scoped, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.

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

Python was created by Dutch programmer Guido van Rossum and was first released in 1991. It is a high-level, interpreted, general-purpose programming language with a design philosophy that emphasizes code readability with use of significant code indentation and is often referred to as a "batteries included" programming language thanks to its comprehensive standard libraries.

cat("Hello world!")
Enter fullscreen mode Exit fullscreen mode

R was created by statisticians Ross Ihaka and Robert Gentleman and it first appeared in August 1993. It is a programming language for statistical computing and graphics and it is used amongst data miners, bioinformaticians and statisticians for data analysis and developing statistical software.

package main

import "fmt"

func main() {
  fmt.Println("Hello world!")
}
Enter fullscreen mode Exit fullscreen mode

Go often referred to as Golang, was designed at Google in 2007 to improve programming productivity by Robert Griesemer, Rob Pike, and Ken Thompson and later released to the public in November 2009. It is a statically typed, compiled programming language and is syntactically similar to C, but with memory safety, garbage collection, structural typing, and CSP-style concurrency.

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

Java was originally developed by James Gosling at Sun Microsystems and was released in May 1995. It is a high-level, class-based, object-oriented programming language designed to have as few implementation dependencies as possible and is intended to let programmers write code once and run anywhere without the need to recompile.

echo "Hello world!";
Enter fullscreen mode Exit fullscreen mode

PHP is a general-purpose scripting language geared towards web development and was originally created by a Danish-Canadian, Rasmus Lerdorf in 1994. PHP originally translated to Personal Home Page, however, today it is known as PHP: Hypertext Preprocessor.

Through your ideas, you open the window of your mind(IDE) and say a Hello to the World. - Mehmet Murat Ildan

A programmer's choice of language is totally up to the programmer or most times, in the case where the programmer is hired or employed to build/maintain an already existing application, they'd have to learn the syntax of the required language and there will be no better introduction to that language other than the infamous line, Hello world!

If you enjoyed reading this article as much as I enjoyed writing it, please be kind to give it a Like(❀️), Unicorn(πŸ¦„) and/or Leave a Comment(✍️) and also share with your friends and family interested in learning how to code. PS: Doing this will help me improve and write better informative posts.

You can find me on Twitter and LinkedIn.

Until my next post, CiaoπŸƒβ€β™‚οΈπŸƒβ€β™‚οΈπŸƒβ€β™‚οΈ

Header photo by Clay Banks on Unsplash

Top comments (3)

Collapse
 
syeo66 profile image
Red Ochsenbein (he/him) • Edited

Elixir

IO.puts "Hello world!"
Enter fullscreen mode Exit fullscreen mode

Rust

fn main() {
    println!("Hello World!");
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ikenwaa profile image
Augustine Ikenwa

Thank you for adding these to the list.

Collapse
 
yewande_adelusi_e059b85d2 profile image
Yewande Adelusi

Interesting read!