0% found this document useful (0 votes)
48 views

1.02 Programming Paradigms

This document discusses different programming paradigms including declarative programming, imperative programming, and procedural programming. Declarative programming focuses on describing what a program should do without describing how, while imperative programming describes how a program gets results through sequential execution of instructions. Procedural programming organizes functions into modules and respects the sequence of a program.

Uploaded by

ALEX
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

1.02 Programming Paradigms

This document discusses different programming paradigms including declarative programming, imperative programming, and procedural programming. Declarative programming focuses on describing what a program should do without describing how, while imperative programming describes how a program gets results through sequential execution of instructions. Procedural programming organizes functions into modules and respects the sequence of a program.

Uploaded by

ALEX
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

PROGRAMMING

PARADIGMS
EDISON LASCANO
ESPE
PROGRAMMING
PARADIGM (SCHOOLS
OF THOUGHT)

•Abstraction mechanism intended to


simplify the desing of software.
(Simmonds, 2012)

•Accepted form to solve a problem by


using a computer. (Instituto tecnológico
de Celaya)
(Laine, Shestakov, Litvinova, & Vuorimaa, 2011)
DECLARATIVE
PROGRAMMING

• It deals with and details “what” a


program has to do, instead of “how”
the program does it
• It does not handle state*
IMPERATIVE
PROGRAMMING

• It describes how a program gets


results
• It is based on the execution of
commands or instructions that
modify the state of a program
IMPERATIVE •

States: Represented by variables
Sequential Order: It represents the use of sequential CPU
PROGRAMMING • Assignments: Pass of information between CPU and memory

Every Instruction is desinged to mutate states/variables,


through assignemnts, in an ordered manner

(Tośić, Milena Vujośević, 2008)


DECLARATIVE VERSUS IMPERATIVE

Declarative Imperative

You say what you


want
You say what you
want And how you
want it

But NOT how


you want it Freedom for the
programmer
MANY
IMPERATIVE
OPTIONES: OOP,
PP
PROCEDURAL PROGRAMMING
(KNOWN BEFORE AS
STRUCTURED PROGRAMMING)

• Procedures as “first class citizens”


• Organization of functions as modules
• Respect for the sequence of a program
WHAT’S NEXT? OBJECT ORIENTED PARADIGM…

You might also like