Programming Paradigms

Introduction

In this artiĀ­cle we will look at what a proĀ­gramĀ­ming parĀ­aĀ­digm is for inforĀ­maĀ­tion purĀ­posĀ­es and give some examples.

The first genĀ­erĀ­aĀ­tions of comĀ­putĀ­ers were proĀ­grammed using machine lanĀ­guage, i.e. a sequence of instrucĀ­tions was givĀ­en that the machine underĀ­stood. As it was difĀ­fiĀ­cult to rememĀ­ber the codes of these instrucĀ­tions, the AssemĀ­bler lanĀ­guage was creĀ­atĀ­ed, which also conĀ­sistĀ­ed of a set of instrucĀ­tions for the machine, but writĀ­ten with words simĀ­ple to remember.

With advances in techĀ­nolĀ­oĀ­gy, proĀ­gramĀ­ming lanĀ­guages emerged, allowĀ­ing proĀ­gramĀ­mers to increase the levĀ­el of abstracĀ­tion and solve more comĀ­plex problems.

CHECK OUT THIS CRAZY EXPERIMENT

What is a Programming Paradigm?

ProĀ­gramĀ­ming in high-levĀ­el lanĀ­guages can take sevĀ­erĀ­al forms, i.e. we can tackĀ­le probĀ­lem solvĀ­ing from difĀ­ferĀ­ent angles.

There are difĀ­ferĀ­ent ways of designĀ­ing a lanĀ­guage and varĀ­iĀ­ous ways of workĀ­ing to get the results that proĀ­gramĀ­mers need. These ways of thinkĀ­ing or workĀ­ing are called PROGRAMMING LANGUAGE PARADIGM.

A conĀ­tinĀ­uaciĆ³n vamos a menĀ­cionar algunos de estos paradigmas.

Imperative Paradigm

ProĀ­grams conĀ­sist of a sucĀ­cesĀ­sion of instrucĀ­tions or comĀ­mands, as if the proĀ­gramĀ­mer were givĀ­ing speĀ­cifĀ­ic commands.

This is the simĀ­plest way to attack probĀ­lems, but it becomes inefĀ­fiĀ­cient when probĀ­lems are complex.

Logical Paradigm

This parĀ­aĀ­digm, as its name indiĀ­cates, is based on logĀ­iĀ­cal thinkĀ­ing, which is natĀ­urĀ­al for us to underĀ­stand. Using logĀ­ic, comĀ­plex probĀ­lems can be expressed in a forĀ­mal way, elabĀ­oĀ­ratĀ­ing premisĀ­es and then applyĀ­ing hypotheĀ­ses, axioms and theĀ­oĀ­rems for resolution.

LogĀ­iĀ­cal proĀ­gramĀ­ming is optiĀ­mal in artiĀ­fiĀ­cial intelĀ­liĀ­gence appliĀ­caĀ­tions. The ProĀ­log lanĀ­guage uses this paradigm.

Functional Paradigm

This parĀ­aĀ­digm conĀ­sists of creĀ­atĀ­ing funcĀ­tions that solve a cerĀ­tain type of probĀ­lems and then callĀ­ing them when needĀ­ed. These funcĀ­tions may conĀ­tain othĀ­er funcĀ­tions withĀ­in them.

Some lanĀ­guages that use this parĀ­aĀ­digm are Haskell and Python. 

Object Oriented Paradigm

In this parĀ­aĀ­digm modĀ­els of objects are conĀ­structĀ­ed, which are abstract entiĀ­ties that have defined a set of data and funcĀ­tions inside.

Go to the Object OriĀ­entĀ­ed ProĀ­gramĀ­ming section.

Some lanĀ­guages that use this parĀ­aĀ­digm are C++, Java and C#.

YouTube
Scroll to Top
Secured By miniOrange