Questions tagged [paradigms]

A tag for questions relating to the world view underlying a particular software methodology or theory.

A tag for questions relating to the world view underlying a particular software methodology or theory.

A paradigm is a model, method or pattern. In programming different methods of writing programs are called , examples are and functional programming.

More information on paradigms

291 questions
851
votes
4 answers

Functional programming vs Object Oriented programming

I've been mainly exposed to OO programming so far and am looking forward to learning a functional language. My questions are: When do you choose functional programming over object-oriented? What are the typical problem definitions where…
Olivier Lalonde
  • 19,423
  • 28
  • 76
  • 91
794
votes
21 answers

What is the difference between declarative and imperative paradigm in programming?

I have been searching the web looking for a definition for declarative and imperative programming that would shed some light for me. However, the language used at some of the resources that I have found is daunting - for instance at Wikipedia. Does…
Brad
  • 20,302
  • 36
  • 84
  • 102
480
votes
14 answers

Functional, Declarative, and Imperative Programming

What do the terms functional, declarative, and imperative programming mean?
curiouskitty
320
votes
17 answers

What is the difference between procedural programming and functional programming?

I've read the Wikipedia articles for both procedural programming and functional programming, but I'm still slightly confused. Could someone boil it down to the core?
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
270
votes
7 answers

What is aspect-oriented programming?

I understand object oriented programming, and have been writing OO programs for a long time. People seem to talk about aspect-oriented programming, but I've never really learned what it is or how to use it. What is the basic paradigm? This…
Sophie
  • 2,957
  • 3
  • 18
  • 14
251
votes
7 answers

OOP vs Functional Programming vs Procedural

What are the differences between these programming paradigms, and are they better suited to particular problems or do any use-cases favour one over the others? Architecture examples appreciated!
230
votes
7 answers

Aspect Oriented Programming vs. Object-Oriented Programming

Like most developers here and in the entire world, I have been developing software systems using object-oriented programming (OOP) techniques for many years. So when I read that aspect-oriented programming (AOP) addresses many of the problems that…
yeradis
  • 5,235
  • 5
  • 25
  • 26
171
votes
2 answers

Mixins vs. Traits

What is the difference between Mixins and Traits? According to Wikipedia, Ruby Modules are sort of like traits. How so?
KaptajnKold
  • 10,638
  • 10
  • 41
  • 56
98
votes
6 answers

Alternatives to Object-Oriented Programming?

OOP is probably the most used programming paradigm in today’s software design. My question is – what other paradigm(s) can compete with it and can stand in the place of OOP? To clarify that question, I’m not asking about what other paradigms there…
Dariusz Woźniak
  • 9,640
  • 6
  • 60
  • 73
94
votes
10 answers

How do functional programming languages work?

If functional programming languages cannot save any state, how do they do simple stuff like reading input from a user? How do they "store" the input (or store any data for that matter?) For example: how would this simple C thing translate to a…
Lazer
  • 90,700
  • 113
  • 281
  • 364
91
votes
2 answers

The difference between Reactive and Functional-Reactive programming

I have been doing some research into reactive programming recently and I'm finding it hard to find a good description of the difference between Reactive and Functional-Reactive. Is it simply that the reactive programming is implemented using…
75
votes
10 answers

Are FP and OO orthogonal?

I have heard this time and again, and I am trying to understand and validate the idea that FP and OO are orthogonal. First of all, what does it mean for 2 concepts to be orthogonal? FP encourages immutability and purity as much as possible, while OO…
letronje
  • 9,002
  • 9
  • 45
  • 53
74
votes
8 answers

Functional programming and non-functional programming

In my second year of University we were "taught" Haskell, I know almost nothing about it and even less about functional programming. What is functional programming, why and/xor where would I want to use it instead of non-functional programming and…
Teifion
  • 108,121
  • 75
  • 161
  • 195
72
votes
8 answers

Pitfalls/Disadvantages of Functional Programming

When would you NOT want to use functional programming? What is it not so good at? I am more looking for disadvantages of the paradigm as a whole, not things like "not widely used", or "no good debugger available". Those answers may be correct as of…
Gordon Gustafson
  • 40,133
  • 25
  • 115
  • 157
62
votes
8 answers

Double-checked locking in .NET

I came across this article discussing why the double-check locking paradigm is broken in Java. Is the paradigm valid for .NET (in particular, C#), if variables are declared volatile?
erikkallen
  • 33,800
  • 13
  • 85
  • 120
1
2 3
19 20