5 Popular Programming Languages and Their Uses

The world needs increasingly more programmers with each passing day. If you decided that you want to change your career or you just simply want to learn new programming languages to widen your skillset and you don’t know what are the most popular programming languages and what are they used for, look no further. I got you covered.

In the following paragraphs I’ll save you precious time and leave aside the more obscure languages, as well as some that aren’t really programming languages per se.

Additionally, for each language there will be an assigned piece of code just so you can see the syntax and the structure of a simple program in that specific language.

Without further ado and in no particular order, here are the most popular programming languages and their uses:

5. Java

It’s one of the most widely embraced programming languages out there and it’s currently running on 8 billion devices worldwide. Java is a general-purpose object oriented computer programming language which gained popularity amongst developers due to the fact that the language is grounded in simplicity and readability.

Java was originally developed by James Gosling and has been released in 1995. Those who work with C/C++ can quite easily accommodate with the syntax because Java is derived from C languages.

Many universities worldwide choose to teach Java during the first semester due to the powerful environment which fully prepares the students to become great structural thinkers and masters of object oriented programming.

Famous applications that are using Java:

  • GMail (email service developed by Google)
  • Android (mobile operating system developed by Google)
  • Eclipse (integrated development environment)
  • Minecraft (yes, that famous pixelated game)
  • Other server apps at Financial Services Industry, trading applications, big data technologies, high frequency trading space and scientific software

Java code example:


public class MineSweeper {
    private int[][] myTruth;
    private boolean[][] myShow;
    public void cellPicked(int row, int col) {
        if (inBounds(row, col) && !myShow[row][col]) {
            myShow[row][col] = true;
            if (myTruth[row][col] == 0) {
                for (int r = -1; r <= 1; r++)
                    for (int c = -1; c <= 1; c++) cellPicked(row + r, col + c);
            }
        }
    }
    public boolean inBounds(int row, int col) {
        return 0 <= row && row < myTruth.length && 0 <= col && col < myTruth[0].length;
    }
}

4. C++

C++ (pronounced C-Plus-Plus) is a general purpose object oriented programming language developed by Bjarne Stroustrup and it is based on the earlier C language designed by Dennis Ritchie and Ken Thompson.

C++ revolutionized the programming world back in the late ’90s up until today. It is considered to be an intermediate level language, as it encapsulates both high and low level language features. It became popular due to the pragmatic and well defined features that allowed programmers to develop software with outstanding performance.

Yet, over the years the importance of C++ has somewhat diminished due to the managed languages gaining ground that have allowed programmers to be more expressive at the expense of performance.

C++ is so widely known that at least every year of your life you used at least one program written in this language.

Famous applications that are using C++:

  • Microsoft Windows
  • Apple OS – X
  • Symbian OS
  • MySQL
  • Adobe systems (Photoshop, Illustrator, Adobe Premier, etc)

C++ code example:


#include <stdio.h>
#include <time.h>
#include <windows.h>
#include <stdlib.h>

int main()
{
struct tm *tmp;
time_t s;

for(;;)
{
s = time(NULL);
tmp = localtime(&t);
 
    printf("%d:%0d:%d\n",tmp->tm_hour,tmp->tm_min,tmp->tm_sec);
     
    Sleep(1000);
     
    system ("cls");
 
}  

  
return 0;
}

3. JavaScript

It’s very common to see JavaScript referred to as one of the three core languages of the World Wide Web. You have HTML markup language for content and structure. You have CSS, the style sheet language, for design and then you have JavaScript, the programming language for your behavior and interactivity.

Why is JavaScript so popular?

  • Every browser that you’re using, be it Chrome, Firefox, Safari, Opera, they all use JavaScript. If you want to make a website and provide a great UX, then JavaScript is your best pal
  • You can run it as your server side language. With node.js you can create a tough, functional backbone server side code.
  • Functions, Dynamic Objects, Expressive Object Literal Notation
  • It’s the mother (or father?!) of JSON, a universally popular data exchange format
  • It has hundreds of frameworks. While this might be considered a downside, I think it has a huge positive impact on the community

Famous applications that are using JavaScript:

  • Web browsers like Mozilla Firefox, Google Chrome, Safari, Opera, Internet Explorer (yeah, even IE uses JS)
  • Every website built since 2000
  • Adobe Photoshop
  • Video games
  • All kind of bots, automated scripts for cracking and data mining

JavaScript code example:


<!DOCTYPE html>
<title>My Example</title>


<time id="date"></time>

<script>
  /* 
  Create a JavaScript Date object for the current date and time,
  then extract the desired parts, then join them again in the desired format.
  */
  var currentDate = new Date(),
      day = currentDate.getDate(),
      month = currentDate.getMonth() + 1,
      year = currentDate.getFullYear(),
      date = day + "/" + month + "/" + year;
      
  // Output the date to the above HTML element
  document.getElementById("date").innerHTML = date;
</script>

<!--- via http://www.quackit.com -->

2. PHP

PHP stands for Hypertext Preprocessor and it’s an HTML-embedded scripting language. Its syntax is derived from C, Java and Perl but it also has unique features that makes this language one of the most widely used computer languages in the World Wide Web.

The main use of PHP is to allow developers to create dynamical web pages. The language has suffered many transformations along the road and has a very active community. There are various important PHP frameworks that are being used by important companies in the industry.

Thanks to its functionality, PHP can easily communicate with databases and exchange data that other languages are hardly able to do so.

Famous applications that are using PHP:

  • 90% of the websites (Facebook is widely known for using PHP)
  • Web applications (CMS, Plugins, SaaS, etc)

PHP code example:


 <html>
 <head>
 <title>A File Upload Script</title>
 </head>
 <body>
 <div>
 <?php
 if ( isset( $_FILES['fupload'] ) ) {

     print "name: ".     $_FILES['fupload']['name']       ."<br />";
     print "size: ".     $_FILES['fupload']['size'] ." bytes<br />";
     print "temp name: ".$_FILES['fupload']['tmp_name']   ."<br />";
     print "type: ".     $_FILES['fupload']['type']       ."<br />";
     print "error: ".    $_FILES['fupload']['error']      ."<br />";

     if ( $_FILES['fupload']['type'] == "image/gif" ) {

         $source = $_FILES['fupload']['tmp_name'];
         $target = "upload/".$_FILES['fupload']['name'];
         move_uploaded_file( $source, $target );// or die ("Couldn't copy");
         $size = getImageSize( $target );

         $imgstr = "<p><img width=\"$size[0]\" height=\"$size[1]\" ";
         $imgstr .= "src=\"$target\" alt=\"uploaded image\" /></p>";

         print $imgstr;
     }
 }
 ?>
 </div>
 <form enctype="multipart/form-data"
     action="<?php print $_SERVER['PHP_SELF']?>" method="post">
 <p>
 <input type="hidden" name="MAX_FILE_SIZE" value="102400" />
 <input type="file" name="fupload" /><br/>
 <input type="submit" value="upload!" />
 </p>
 </form>
 </body>
 </html>

1. Python

Python is a high-level, general purpose programming language. Python’s simple and easy to learn syntax eases the readability therefore decreasing the costs of program maintenance. Like other modern programming languages, it supports modules and packages that are developed by the fast-growing and dedicated community.

Moreover, debugging a Python program is nowhere near a hassle, since there is no compilation step and the edit-test-debug cycle is pretty fast. And fortunately for everybody, Python has a rich and easy to read documentation, where you can also learn how to properly debug a program.

What is Python used for?

It surely excels at integration tasks. Due to its versatility and ready-made tools, many developers use Python as an embedded scripting language.

It is also very popular in the web environment as it is a solid backbone for back-end development.

Another use of Python, which I think you might find it cool is programming robots, drones, science projects and house automation systems.

Famous applications that are using Python:

  • Quora
  • Django and Pyramid (web frameworks)
  • Instagram
  • Spotify
  • BitTorrent

Python code example:


import urllib
import re

print "we will try to open this url, in order to get IP Address"

url = "http://checkip.dyndns.org"

print url

request = urllib.urlopen(url).read()

theIP = re.findall(r"d{1,3}.d{1,3}.d{1,3}.d{1,3}", request)

print "your IP Address is: ",  theIP

What programming languages are you using on a daily basis and what are you using them for?

Do you think you can extend their functionality a bit their functionalities and use them for something that they’re not commonly used for?

Share your experience!

Carol Pelu
Follow me

Carol Pelu

Neutron Star at Neutron Dev
Carol is a self-taught programmer and founder of Neutron Dev. He enjoys the challenge of programming and helping people understand computers. SpaceX and Tesla enthusiast.
Carol Pelu
Follow me

You may also like...