Questions tagged [paradigms]

A fundamental style of computer programming.

100 questions
112
votes
4 answers

What's The Difference Between Imperative, Procedural and Structured Programming?

By researching around (books, Wikipedia, similar questions on SE, etc) I came to understand that Imperative programming is one of the major programming paradigms, where you describe a series of commands (or statements) for the computer to execute…
54
votes
3 answers

Why is an anemic domain model considered bad in C#/OOP, but very important in F#/FP?

In a blog post on F# for fun and profit, it says: In a functional design, it is very important to separate behavior from data. The data types are simple and "dumb". And then separately, you have a number of functions that act on those data…
48
votes
7 answers

Haskell AND Lisp vs. Haskell OR Lisp

I currently code with C, C++, and Python. I'm wanting to pick up a functional programming language, and right now I'm leaning toward Haskell. I do NOT want to start a "Haskell vs Lisp" war here; what I want to know is this: if I learn Haskell…
Zeke
  • 1,854
  • 2
  • 15
  • 22
39
votes
9 answers

How do I overcome paralysis by analysis when coding?

When I start a new project, I often times immediately start thinking about the details of implementation. "Where am I gonna put the DataBaseHandler? How should I use it? Should classes that want to use it extend from some Abstract superclass..?…
35
votes
1 answer

What is tabular programming?

The Falcon programming language advertises itself as supporting tabular programming: Falcon provides six integrated programming paradigms: procedural, object oriented, prototype oriented, functional, tabular and message oriented. And you don't…
yannis
  • 39,547
  • 40
  • 183
  • 216
33
votes
5 answers

Is programming in the UNIX philosophy the same as Functional programming?

The UNIX Programming Environment (the classic text) states that the UNIX approach to programming is to build small, well-defined tools that can be combined to solve more complex problems. In learning C and the Bash shell, I've found this to be a…
dvanaria
  • 615
  • 6
  • 8
33
votes
3 answers

Error handling considerations

The problem: Since long time, I am worried about the exceptions mechanism, because I feel it does not really resolve what it should. CLAIM: There are long debates outside about this topic, and most of them struggle at comparing exceptions vs…
Adrian Maire
  • 541
  • 4
  • 15
28
votes
13 answers

What's your strongest opinion against functional programming?

Functional programming is one of the oldest programming paradigms. However it isn't used much in the industry compared to more popular paradigms. But it have largely been emphasized in academia. What's your strongest opinion against functional…
Jonas
  • 14,867
  • 9
  • 69
  • 102
26
votes
8 answers

Is there a programming paradigm that promotes making dependencies extremely obvious to other programmers?

I work in a Data Warehouse that sources multiple systems via many streams and layers with maze-like dependencies linking various artifacts. Pretty much every day I run into situations like this: I run something, it doesn't work, I go through loads…
25
votes
5 answers

Learning Each Type of Programming Language

I have heard several times that every programmer should learn one of each type of language. Now, this is not necessarily true, but I believe it is a good idea. I've learned a Procedural Language (Perl), but what are the other types? What are the…
Dynamic
  • 5,746
  • 9
  • 45
  • 73
24
votes
5 answers

For what common problems is functional programming not a good fit?

Functional programming is a declarative paradigm. One of the strenghts with FP is that side-effects are avoided. It's said that for some problems FP isn't a good fit. For what common problems isn't functional programming a good fit?
Jonas
  • 14,867
  • 9
  • 69
  • 102
21
votes
11 answers

is OOP the dominant programming model in real world?

Objects Never? Well, Hardly Ever In the VIEWPOINT section of Communications of The ACM, I found an interesting article entitled "Objects Never? Well, Hardly Ever". It’s a radically different perspective than objects-first or objects-late. He…
Ehsan
  • 853
  • 3
  • 8
  • 9
21
votes
5 answers

What alternatives are there for cross cutting concerns other than aspect oriented programming?

Aspect oriented programming promises to deal with cross cutting concerns, but I'm not completely sold on it yet. Have there been any other attempts to deal with this problem?
Casebash
  • 7,662
  • 5
  • 41
  • 62
19
votes
7 answers

For what problems is object oriented programming not a good choice?

Somewhat inspired by this question: For what common problems is functional programming not a good fit? - but nevertheless a question which I always wanted, but was too afraid to ask. I've been in ... well, let's call it engineering software…
Rook
  • 19,861
  • 9
  • 53
  • 96
17
votes
6 answers

Is it a good idea to do UI 100% in Javascript and provide data through an API?

My primary day job is making HTML applications. With that I mean internally used CRUD-type applications with lots of editable gridviews, textboxes, dropdowns, etc. We're currently using ASP.NET webforms, which do get the job done, but the…
Vilx-
  • 5,320
  • 4
  • 20
  • 24
1
2 3 4 5 6 7