What is Programming – II

In Part-I I had discussed the basics of programming and what actually a program is in generic terms. Time to get a little more specific.

Every computer programming language is highly independent though similar. The differences spring from the need of every language being modeled around a certain singular aim. Broadly speaking we have:

  • High Level Languages – Best understood by humans. Also called human level languages.
  • Assembly Languages- Lying between machine languages and high-level languages are languages called assembly languages. Assembly languages are similar to machine languages, but they are much easier to program in because they allow a programmer to substitute names for numbers. Machine languages consist of numbers only.
  • Machine Level Languages – Each CPU usually has its own machine level language.

Regardless of what language you use, you eventually need to convert your program into machine language so that the computer can understand it. There are two ways to do this:

1) Compile the program

2) Interpret the program

 

Gaah. Again rambling random stuff aint I? Ok let us see the most popular high level languages these days. Open each link for further detailed reading.

OBJECT ORIENTED

C

One of the most flexible languages. Simple to the point. Gets the work done. Gives ability to code at assembly level.

#include <stdio.h> int main(){    printf(“Hello, world!\n“);}

 

C ++

It embodies powerful object-oriented features, but it is complex and difficult to learn.

#include <iostream>

int main()

{

std::cout << “Hello, world!\n“;

}

 Java

It is intended to let application developers “write once, run anywhere” (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.

In console: 

public class HelloWorld {    public static void main(String[] args){       System.out.println(“Hello, world!”);   }}

  Python

My personal favourite. Its like combining C++ and Java and remove their dependencies. Lightweight. Emphasis on human readability. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library.

print“Hello, world!”

 

Haskell

The most functional programming language around. Declarative, statically typed code.

main = putStrLn“Hello, world!”

 

Mathematical Modelling languages

MATLAB  (matrix laboratory)

MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages, including C, C++, Java, Fortran and Python.

disp(‘Hello, world!’)

OCTAVE

It provides a command-line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with MATLAB. It may also be used as a batch-oriented language.

#! octave-interpreter-name -qf# a sample Octave programprintf (“Hello, world!\n”);

 

 

 

Saleem Ahmed

Coder, Algorithm Designer, Growth Hacker. Ubiquitous Problem Solver, #NodeJs #AngularJs #MeanStack Listening to Bach helps me concentrate on building things. Passion for anything related to technology, especially interested towards application of AI and machine learning to solve real world problems.

 

Leave a Reply