You are on page 1of 5

DECLARATIVE PROGRAMMING

7 AUGUST 2013
VIEN CARLO H. DOCTOR C H RY S J A N C . N AVA R RO

DECLARATIVE WHAT we want to achieve. PROGRAMMING

HOW to achieve our goal.

A formal system that PROGRAMMING COMPUTATION Take the next customer Show customer details defines how "IMPERATIVE" "DECLARATIVE" from a list. of every customer PARADIGMS MODELS computations are done. living in the If the customer lives in IMPERATIVE Philippines. Algorithm Goal

WHAT PROGRAMMING
Explicit

the Philippines, show their details. Explicit

HOW

If there are more customers in the list, go to the beginning.

want, now you Free work from out specifying so it" how to do many details. approach

"This is what I PREFERABLE

LOW LEVEL Changing Functions Traditional CONTROL values become very


the problem to give a more efficient answer.

"step by step become important. Bound from less recipe" exploiting important. approach knowledge about

Having less chance for bugs.

DECLARATIVE PROGRAMMING

FUNCTIONAL IMPERATIVE PROGRAMMING

DECLARATIVE PROGRAMMING
expresses the logic of a computation without describing its control flow.
attempts to minimize or eliminate side effects by describing what the program should accomplish.

SOURCES
Article: http://www.forbes.com Why Adopting the Declarative Programming Practices Will Improve Your Return from Technology by Dan Woods 17 April 2013 Blog: www.latentflip.com Imperative vs Declarative by Philip Roberts 2 April 2013 Book: www.manningsandbox.com Functional Programming for the Real World by Tomas Petricek and Jon Skeet

You might also like