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

Declarative Programming

Declarative programming expresses the logic of a computation without describing its control flow. It attempts to minimize or eliminate side effects by describing what the program should accomplish. Declarative programming defines how computations are done through a formal system and focuses on what we want to achieve rather than how to achieve the goal. Some benefits of declarative programming include having less chance for bugs and the problem being able to give a more efficient answer by exploiting knowledge about the problem domain.

Uploaded by

Airah Cruz
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

Declarative Programming

Declarative programming expresses the logic of a computation without describing its control flow. It attempts to minimize or eliminate side effects by describing what the program should accomplish. Declarative programming defines how computations are done through a formal system and focuses on what we want to achieve rather than how to achieve the goal. Some benefits of declarative programming include having less chance for bugs and the problem being able to give a more efficient answer by exploiting knowledge about the problem domain.

Uploaded by

Airah Cruz
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 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