Programming paradigms
Paradigm – “to describe an example of a pattern” or “to describe an
example of a way of doing things”
Programming paradigm - incl python, c#, VB
Most programming languages in most programming paradigms are said to
be Turing complete, Turing complete languages can solve all problems a
computer is able to solve.
Machine code :
- least abstract
- closest to what actually happens on a computer
- programs directly in 1s and 0s
- these translate into matching electrical signals (high voltage for 1,
low for 0)
Assemble language:
- uses mnemonics
- each mnemonics matches a specific sequence of 1s and 0s
- one-to-one relationship
- written in assembly language and translated by a specific assembler
High-level languages:
- developed in the early 1950s starting with Fortran
- one-to-many relationship, each instruction could give rise to many
lines of machine code
- so much more complex
Imperative languages – use statements that change a program’s state in
the form of sequence, selection, iteration, etc. Consist of commands for a
computer to perform and focus on describing how a program operates
Procedural programming – a type of imperative programming
paradigm where a program is built from one or more subroutines
Object-oriented programming paradigms – a modern extension of
the imperative programming approach that focuses more on a
modular approach to programming
Declarative languages – focus on what the program should accomplish