Types of programming languages 1
Functional vs. Procedural 2
Stack based 2
Object-Oriented Programming 3
List of programming languages 4
C Sharp 7
Source code 8
Types of programming languages
A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms.
There are many types of programming languages. Most programming languages do not follow one type alone, so it is difficult to assign a type for each language. The examples of each type are given in each section below because they are the best well-known examples of that type.
Declarative vs. Imperative programming[change | edit source]
Declarative programming languages describe a "problem" but they usually do not say how the problem should be solved. The problem description uses logic, "solving" the problem often looks like automatically proving a system of logical axioms. Examples for such programming languages are Prolog, XSLT, LISP and SQL
Imperative programming languages describe a system of state changes. At the start, the program is in a certain state, and the computer is given steps to follow, in order to perform an action. Following the steps causes the program to "change state".
In general, declarative programming languages are safer and shorter. Imperative programming languages are more common, because they are easier to use.
Functional vs. Procedural
Functional programming looks at programming like a function in mathematics. The program receives input, some information, and uses this information to create output. It will not have a state in between, and it will also not change things that are not related to the computation.
Procedural programs are a set of steps or state changes.
Stack based languages look at the some of...