What is programming language?

WHAT IS PROGRAMMING LANGUAGE?  HOW THEY WORK? WHAT IS JAVA? PYTHON? WHICH PROGRAMMING LANGUAGE SHOULD I LEARN? LET'S EXPLORE!!!

SOME COMMON TERMS BEFORE STARTING

PROGRAMMER- an individual who writes codes and creates software or a software developer.

HIGH LEVEL PROGRAMMING LANGUAGE- It is programmer friendly language. Examples of high level languages are C, C++, Java, Python, etc.

MACHINE LEVEL LANGUAGE- Machine language, or machine code, is a low-level language comprised of binary digits (ones and zeros).Since computers can only recognize binary data.

COMPILER- Compilers convert high-level language code to machine language. Compilers can take a while, because they have to translate high-level code to lower-level machine language all at once.

INTERPRETERS- An interpreter translates high level language to machine language like a compiler but it coverts line by line, therefore is initially faster than a compiler.

ASSEMBLERS-  An assembler translates a program written in assembly language into machine language. Assembly language is a low-level programming language.

NOTE- Languages such as Ruby, Perl, Python, PHP uses an interpreter and assembly language uses an assembler.Languages such as C, C++ use compilers.


WHAT IS PROGRAMMING LANGUAGE ?

Image Source - Google | Image by - educba

A programming language is a computer language programmers use to develop software programs or set of instructions for the computer to execute or we can say that just as human languages, we have programming languages that we can use to communicate with the computer. 

HOW IT WORKS?

Computer understands binary digits, 0 and 1. But its very difficult for us to understand so programming languages were created. We generally use a higher level language like java to write a program and then it's the job for the language to translate the instructions to low level language using compilers or interpreters for the computer to execute.

HERE ARE FEW POPULAR PROGRAMMING LANGUAGES THAT I HAVE DISCUSSED-

WHA IS JAVA ?

Image Source - Google | Image by - educba

A programming language developed by James Gosling at Sun Microsystems and released in 1995. It's the first programming language that uses both compiler and interpreter. Some popular applications created using Java were twitter, Spotify and many more.

Why program - Hello, world! is so famous among programmers?

It's the most famous and simple program every programmer use. Traditionally it's the first program used to test the system.

As you write the given program, you are simply instructing the programming language to tell the computer to display Hello, world!

// Your First Program

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


Hello, world! {codeBox}


WHAT IS PYTHON ?

Image Source - Google | Image by - edureka

Python was created by Guido Van Rossum and released in 1991. The most recent major version of Python is Python 3. It's very popular as it has a simple syntax and english like commands that makes python lot easier and efficient. Some popular sites like Instagram, Netflix, pinterest were created using python.

print("Hello, world!") {codeBox}

Hello, world! {codeBox}

Don't you think writing this - Hello, world! in python is much easier than writing it in another programming languages. 

C PROGRAMMING LANGUAGE

Image Source - Google | Image by - techgig

C is a general-purpose programming language that is extremely popular and simple. C was developed in the early 1970s by Ken Thompson and Dennis Ritchie at Bell Labs. It is used to write the code for operating systems or much more complex programs. Mac, Linux, microsoft windows, or iOS and Android are powered by C language . We can say that C programming language still runs the world!!!

#include <stdio.h>
int main() {
   // printf() displays the string inside quotation
   printf("Hello, World!");
   return 0;
} {codeBox}

Hello, world! {codeBox}

C++ PROGRAMMING LANGUAGE

Image Source - Google | Image by - toptal

C++ is a powerful programming language and was developed by Bjarne Stroustrup at Bell Labs circa in 1980. C++ is very similar and to C language. Microsoft Windows or Mac OSX or Linux - all of the operating systems have some parts which are programmed in C++. C++ is widely used in programming of game development engines. Some parts of YouTube and Adobe Photoshop are also created using C++.

// Your First C++ Program

#include <iostream>

int main() {
    std::cout << "Hello World!";
    return 0;
} {codeBox}

Hello, world! {codeBox}

There's also HTML and CSS. While these aren't technically programming languages, they're used to create the structure and appearance of almost every website.

WHICH PROGRAMMING LANGUAGE SHOULD I LEARN?

If you are a beginner, it's good for you to start with an easy and friendly programming language. Python is an recommend programming language for the beginners to start with as it is simple and also opensource and free. 

3 Comments

Post a Comment
Previous Post Next Post