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

Getting started with C++ ( the paradigm shift from Python )

I want to learn C++ so that i can develop C++ Python modules for server-related stuff. I'm a purely dynamic languages developer (Python, PHP, Ruby, etc). I want to learn a fast language, and if I'm going to do this, I'd rather learn a really fast…
orokusaki
  • 55,146
  • 59
  • 179
  • 257
3
votes
2 answers

What is order of execution and how does it affect code?

I am trying to understand the difference between functional programming and imperative programming (and all other derivatives). However, I am stumped by one simple concept in which many websites and books never explain: what is an order of…
Skaty
  • 467
  • 2
  • 6
  • 19
3
votes
3 answers

What are the programming paradigms used in the bash language?

In a bunch of languages I tried, functions can return values in a fair amount of types (ints, strings, various objects, functions that return functions etc.), but in bash, it seems like the only type allowed is int, and it is not supposed to be used…
ychaouche
  • 4,922
  • 2
  • 44
  • 52
3
votes
3 answers

In which layer should I join 2 entities together?

I use Spring MVC and a regular JDBC. I've just learned that I should separate business process into layers which are presentation layer, controller layer, service layer, and repository/DAO layer. Now suppose that I have an Entity called Person that…
William Wino
  • 3,599
  • 7
  • 38
  • 61
3
votes
1 answer

datatype programming

I know of "imperative" and "functional" programming but there was little I could find on "datatype" programming. Is there such a thing and how is it related to the other paradigms?
David K.
  • 6,153
  • 10
  • 47
  • 78
3
votes
0 answers

What exactly are traits and mixins?

I stumbled over traits as I took a look at C++ code some time ago. If I recall correctly they were used to define strings out of chars. And I got told, that one could also define some kind of 'strings' out of double with traits - which I didn't…
mike
  • 4,929
  • 4
  • 40
  • 80
3
votes
6 answers

How does "Language Oriented Programming" compare to OOP/Functional in the real world

I recently began to read some F# related literature, speaking of "Real World Functional Programming" and "Expert F#" e. g.. At the beginning it's easy, because I have some background in Haskell, and know C#. But when it comes to "Language Oriented…
wishi
  • 7,188
  • 17
  • 64
  • 103
3
votes
3 answers

Two (or more) DMLs inside one bulk collect operation loop

I have problem with BULK COLLECT logic on Oracle 11g. The original logic in stored procedure is: PROCEDURE FOO(IN_FOO IN VARCHAR2) IS BEGIN FOR CUR IN (SELECT COL1,COL2,COL3 FROM SOME_TABLE) LOOP INSERT INTO OTHER_TABLE (C1,C2,C3) VALUES…
WBAR
  • 4,924
  • 7
  • 47
  • 81
3
votes
1 answer

Is this programming paradigm vital to my success?

I'm currently making apps for iOS, and I had a quick question about making UIViews. In the process of designing a UIView, I was wondering if everything should be based off of the bounds of the rectangle that contains my view. For example, the one…
James Traimory
  • 513
  • 1
  • 4
  • 8
2
votes
2 answers

High Granularity Adaptive Society of Agent Software?

I was thinking about how our society incentivizes behaviors by a collection of free individuals, so that the work of those individuals fulfils the requirements of the society as a whole. For example, people contribute by working, earn money, and use…
Larry Watanabe
  • 10,126
  • 9
  • 43
  • 46
2
votes
3 answers

Any sucess using UI-based program structuring?

Have you ever structured your source code based on your user interface parts? For example if your UI consists of: GridView for showing some properties 3D rendering panel panel for choosing active tools , then you name and group your variables and…
AareP
  • 2,355
  • 3
  • 21
  • 28
2
votes
2 answers

Passing on a function from server to client

I recently ran into the foo.toSource() option in JavaScript. This allows a serialization of a function. I was wondering about the possibilities of transferring functions over the networks, from server to client, and executing them at a later time -…
Ofri
  • 474
  • 5
  • 13
2
votes
2 answers

Does setting the text of a simple text label go against MVC?

In MVC the View shouldn't hold it's data. However I know in Objective-c you do: [textField setString:@"hello"];, that string is then retained by the text field. The same applies for the textField's font and text colour, etc. However a UITableView…
Jonathan.
  • 53,997
  • 54
  • 186
  • 290
2
votes
2 answers

Under which Programming Paradigm Lua can be used?

I've done some research about Lua programming but I'm still confused about under which paradigm it can work. In some walkthroughs, I've found that Lua is not made for Object-Oriented Programming. But they are other people that says it can work too…
Ortharios
  • 610
  • 1
  • 5
  • 10
2
votes
2 answers

What is the programming paradigm of Dtrace?

I've been using Dtrace for a while, and as time goes by I've began to wonder what's the programming paradigm of the D language used in Dtrace. It's not an imperative language, I guess, so that means it's some sort of declarative functional…
Robert Gould
  • 68,773
  • 61
  • 187
  • 272