Title Details: | |
Procedural and Declarative Programming |
|
Authors: |
Stamatopoulos, Panagiotis |
Reviewer: |
Rontogiannis, Panagiotis |
Subject: | MATHEMATICS AND COMPUTER SCIENCE > COMPUTER SCIENCE > PROGRAMMING LANGUAGES MATHEMATICS AND COMPUTER SCIENCE > COMPUTER SCIENCE > INTELLIGENT SYSTEMS > BASIC KNOWLEDGE REPRESENTATION AND REASONING MATHEMATICS AND COMPUTER SCIENCE > COMPUTER SCIENCE > PROGRAMMING LANGUAGES > LOGIC PROGRAMMING |
Description: | |
Abstract: |
In this chapter, a comparative presentation is carried out, mainly through simple examples, of procedural and declarative programming, two methodologies for problem solving in Computer Science. With procedural programming, we can solve a problem by formulating the steps of an algorithm, that is, by following a process that describes how the problem should be solved and the algorithm implemented, with the help of an appropriate procedural programming language. Conversely, in declarative programming, we formulate axioms that describe what holds true in the problem's world, which we express with the help of an appropriate declarative programming language. Often, solving a problem algorithmically leads to complex, unreadable, and, consequently, difficult-to-maintain programs. When we have a problem that fits the declarative philosophy, that is, governed by simple axioms, it is preferable to choose this method to address it. The only reservation we might express concerns its performance. Generally speaking, declarative programming systems are less efficient than procedural programming systems, without this necessarily meaning there are not enough declarative languages that are much "faster" than many procedural ones. Thus, if we are interested in the performance of the program we will write, we must carefully weigh all the involved parameters to make the right choice.
|
Linguistic Editors: |
Xifara, Foteini |
Technical Editors: |
Papavasileiou, Spyridon |
Graphic Editors: |
Papavasileiou, Spyridon |
Type: |
Chapter |
Creation Date: | 2015 |
Item Details: | |
License: |
http://creativecommons.org/licenses/by-nc-nd/3.0/gr |
Handle | http://hdl.handle.net/11419/3586 |
Bibliographic Reference: | Stamatopoulos, P. (2015). Procedural and Declarative Programming [Chapter]. In Stamatopoulos, P. 2015. Logic and Functional Programming [Undergraduate textbook]. Kallipos, Open Academic Editions. https://hdl.handle.net/11419/3586 |
Language: |
Greek |
Is Part of: |
Logic and Functional Programming |
Publication Origin: |
Kallipos, Open Academic Editions |