The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
0answers
40 views

Flow-based vs. Reactive programming paradigms

I am reading Concepts, Techniques, and Models of Computer Programming and came across Flow-based (FBP) and Reactive programming paradigms. Now I have found the following article from J. Paul Morrison, ...
1
vote
1answer
13 views

Are there any paradigms that describe how to save program state checkpoints that can be restored later?

I was wondering if there were any paradigms that describe how to save "state checkpoints" in a program so that a user may go back and reopen a program to the given state. In my situation I see that ...
2
votes
1answer
85 views

Do functional algorithms require more memory than imperative algorithms? [closed]

Let's suppose we are counting words in string. We split it so what we have is an array of strings. I'll use Python as an example. The imperative approach would as follows: ...
1
vote
2answers
96 views

Break and Continue in Structured Programming?

One of the ways to ensure following the structured programming paradigm is by having all control flows having only one entry and one exit point. Does skipping iterations by using break and continue in ...
1
vote
1answer
140 views

Interactive example of Dynamic scoping and evaluation order of expressions

Given the following (arbitrary language, although I think it is close to Algol 60) program: ...
5
votes
6answers
3k views

What problems of procedural programming does OOP solve in practice?

I have studied the book "C++ Demystified". Now I have started to read "Object-Oriented Programming in Turbo C++ first edition (1st edition)" by Robert Lafore. I do not have any knowledge of ...
1
vote
1answer
61 views

How are programming paradigms classified? [closed]

When I started to learn about imperative programming and declarative programming it raised many doubts, like, how are structured, modular and object-oriented programming classified: declarative or ...
4
votes
2answers
246 views

Isn't Functional Programming just Imperative Programming in disguise?

A YouTube video I was watching explained the differences between Imperative and Functional programming by demonstrating how the numbers from 1 to ...
2
votes
1answer
35 views

Can a loop be expressed by only the sequence of statements and the choice of statements?

The theorem of structured programming says that any algorithm can be expressed by those three control structures: Sequence Selection Iteration Isn't it possible to rewrite any loop using a finite ...
14
votes
4answers
1k views

Why do we use persistent data structures in functional programming?

Functional programming employs persistent data structures and immutable objects. My question is why is it crucial to have such data structures here? I want to understand at a low level what would ...
10
votes
1answer
2k views

How do Functional Reactive Programming and the Actor model relate to each other?

FRP is about streaming events and behaviours through pure functions. The Actor model - at least, as implemented in Akka - is about streaming immutable messages (which can be considered to be discrete ...
5
votes
1answer
380 views

What would be the classification of R according to paradigms?

I would like to know in which classification is the R programming language. It has elements of the imperative paradigm and object oriented paradigm (some things like that even a number is an object ...