Programming paradigms |
---|
|
Programming paradigms are a way of grouping programming languages by what they do. Languages can be in more than one paradigm.
Some paradigms look at the way the code is run, such as allowing side effects, or having to do things in a certain order. Other paradigms look at the way that code is grouped, such as putting code into one or two pieces (or instead, many small pieces). Some other paradigms look at the order and pieces that make the program the way it is.
There are two main groups of paradigms, imperative and declarative. A language can be both at the same time.[1][2]