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
24
votes
3 answers

C++ Techniques: Type-Erasure vs. Pure Polymorphism

What are the advantages/disadvantages of the two techniques in comparison ? And more importantly: Why and when should one be used over the other ? Is it just a matter of personal taste/preference ? To the best of my abilities, I haven't found…
Dr.D.
  • 477
  • 3
  • 11
23
votes
1 answer

What is the rationale behind allowing variable shadowing in Rust?

In Rust it is encouraged to shadow variables: But wait, doesn’t the program already have a variable named guess? It does, but Rust allows us to shadow the previous value of guess with a new one. Won't this feature just introduce problems…
Gizmo
  • 1,990
  • 1
  • 24
  • 50
23
votes
5 answers

What is the usage of Model in MVC? Is it actually useful?

I'm new in this, so bear with me. I've been using one MVC framework in a couple of projects lately, and after a while, I'm disillusioned in the perceived usefulness of the 'Model' in MVC. I get the usefulness of Controllers and Views, I know that…
rickchristie
  • 1,640
  • 1
  • 17
  • 29
22
votes
2 answers

Multi-Paradigm Languages

In a language such as (since I'm working in it now) PHP, which supports procedural and object-oriented paradigms. Is there a good rule of thumb for determining which paradigm best suits a new project? If not, how can you make the decision?
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
22
votes
5 answers

Understanding MVC: Whats the concept of "Fat" on models, "Skinny" on controllers?

I'm trying to understand the concept of "Fat" on models vs "skinny" on controllers and from what I've been discussing I have the following example (this is taken from a freenode discussion): Q: On MVC paradigm, its said Fat models, skinny…
punkbit
  • 7,347
  • 10
  • 55
  • 89
21
votes
2 answers

What is the programming paradigm of R?

What is the programming paradigm of R (R as in GNU S)? I believe myself familiar with programming languages of different conceptual paradigms (have programmend in C++, Java, Prolog and some other languages) but although I already write my own small…
user438602
20
votes
2 answers

How are J/K/APL classified in terms of common paradigms?

I've just started learning J, which is very interesting, but I was wondering what kind of language it is exactly, in relation to common paradigms and classifications. For example, you could say that F# is a strongly typed, mainly functional (it…
19
votes
5 answers

What is the opposite of OOP?

I started in High School learning java and python and I guess I just always learned OOP and nothing else my question is What are the other programming paradigms or types of programming languages beside OOP?
if_zero_equals_one
  • 1,716
  • 4
  • 17
  • 30
19
votes
6 answers

Newer programming language than Prolog for logic programming

Is there any newer language than Prolog specialized for logical programming?
Istvan
  • 191
  • 1
  • 3
18
votes
10 answers

What is the difference between a Character Array and a String?

Spending my time on high level languages it suddenly occurred to me that I did not know the difference between a Character Array and a String. I think they are the same thing but not sure. Is there a difference? Is it just a Character Array with…
Todd Moses
  • 10,969
  • 10
  • 47
  • 65
18
votes
3 answers

Queues instead of method chaining and rules instead of conditionals in Ruby

Rich Hickey describes paradigms from Clojure and Haskell in his talk Simple Made Easy. As a ruby/rails programmer (that's all I truly know), I loved his ideas, but didn't understand 2 of them: Using Queues, not Method Chaining Rules instead of…
nitsujri
  • 1,448
  • 2
  • 16
  • 29
18
votes
3 answers

Differences between Self and Smalltalk

I'm just looking for what it is that sets Self apart from Smalltalk. This isn't supposed to be a Gorilla vs Shark question. I'm not looking for reasons one is better, I'm just confused as to what defines one as being distinct from the other. They…
TheIronKnuckle
  • 7,224
  • 4
  • 33
  • 56
18
votes
2 answers

Is unobtrusive JavaScript outdated?

When I first read the principle of unobtrusive JavaScript in the Web Standard Curriculum I thought it's a really great thing. Unobtrusive JavaScript is more of a programming philosophy than a technique. By far its most important component is a…
Konrad Reiche
  • 27,743
  • 15
  • 106
  • 143
16
votes
4 answers

Efficacy of sticking to just the functional paradigm in Scala

I recently bought Programming Scala, and have been reading through it. The language definitely isn't what I expected! Specifically, it seems to implement just about every programming language idea I'm aware of, outside of Lisp macros and Haskell's…
16
votes
10 answers

What modern editors compete with emacs/vi?

Emacs and vi are the traditional editors of the programming gurus. But, have any modern editors been able to displace these two in terms of extensibility and text editing productivity? I know editors such as Eclipse and commercial editors provide…
yters
  • 293
  • 3
  • 11
1 2
3
19 20