Tagged Questions
0
votes
3answers
220 views
The similarities between Functional Programming & Object Oriented-Imperative Programming? [closed]
The heading couldn't say it anymore better.
I understand the differences between the paradigms but i would like to know the similarities between them.
I'm looking for things that affect the program ...
-4
votes
1answer
254 views
Is OOP becoming functional programming? [closed]
Every one knows immutability is the way to go - everyone recommends making your classes as immutable as they can be... but are immutable types still objects?
I have doubt - to me there are simply ...
5
votes
5answers
466 views
Is there any difference between pointers and references? [duplicate]
References and pointers do the same thing as I know. Is there any difference between them?
If there is no difference, why we call them reference not pointer?
10
votes
5answers
912 views
How to code in a more functional style in Java?
I code Java for at least 5 years now and I really appreciate how the language works. When looking at new JVM languages (e.g. Scala, Clojure) there is a trend to more functional ways to code and this ...
2
votes
1answer
429 views
C++ Design: Functional Programming vs OOP
Design Question
Recently, I've been doing more and more FP in C++, mostly in the form of function templates and lambdas, and heavy overloading of a single function name. I really like FP for some ...
20
votes
6answers
1k views
Functional programming compared to OOP with classes
I have been interested in some of the concepts of functional programming lately. I have used OOP for some time now. I can see how I would build a fairly complex app in OOP. Each object would know how ...
11
votes
2answers
266 views
FP for simulation and modelling
I'm about to start a simulation/modelling project. I already know that OOP is used for this kind of projects. However, studying Haskell made me consider using the FP paradigm for modelling a system of ...
19
votes
6answers
2k views
Is functional programming a superset of object oriented?
The more functional programming I do, the more I feel like it adds an extra layer of abstraction that seems like how an onion's layer is- all encompassing of the previous layers.
I don't know if this ...
5
votes
6answers
679 views
Functional programming readability
I'm curious about this because I recall before learning any functional languages, I thought them all horribly, awfully, terribly unreadable. Now that I know Haskell and f#, I find it takes a little ...
4
votes
4answers
512 views
How are objects modelled in a functional programming language?
In an answer to this question (written by Pete) there are some considerations about OOP versus FP. In particular, it is suggested that FP languages are not very suitable for modelling (persistent) ...
0
votes
2answers
397 views
I cannot understand the application of oops How can I develop the understanding of application of oops?
I am struggling hard to learn the application of Object Oriented Programming since last 2 years. I am a developer in PHP technology, I am aware of almost all the basics of OOPS, but still cannot find ...
13
votes
5answers
1k views
How to make the transition to functional programming?
Lately, I have been very intrigued with F# which I have been working a bit with. Coming mostly from Java and C#, I like how concise and easily understandable it is. However, I believe that my ...
2
votes
3answers
194 views
Turning your code inside out (functional style) compared to a OO paradigm
I have find this article Turning Your Code Inside Out and I want to know how this approach described in article is for OO programmers/languages.
Is this style of design used in OO ...
19
votes
10answers
1k views
How would Functional Programming proponents answer this statement in Code Complete?
On page 839 of the second edition, Steve McConnell is discussing all the ways that programmers can "conquer complexity" in big programs. His tips culminate with this statement:
"Object-oriented ...
3
votes
1answer
739 views
Non-OOP languages advantages and good uses
I'm a C# developer, but I also know Java, JavaScript, XSLT, a little of C and Perl, e some other that I may have forgotten. Still, the paradigm I'm most familiar to is OOP.
I have always thought ...
30
votes
18answers
5k views
What would you do if your client required you not to use object-oriented programming?
I am writing a program to simulate the activity of ants in a grid (PDF). The ant can move around, pick up things and drop things.
The problem is while the action of the ants and the positions of each ...
7
votes
4answers
980 views
A programming language that does not allow IO. Haskell is not a pure language
Are there any 100% pure languages (as I describe in the Stack Overflow post) out there already and if so, could they feasibly be used to actually do stuff? i.e. do they have an implementation? I'm not ...
9
votes
4answers
2k views
Example of where Functional Programming is Superior to Imperative or Object-Oriented Programming? [duplicate]
Possible Duplicate:
Which problems domains are more suited to functional programming solutions
I've been reading about functional programming. I've been using mostly C#.net recently, and ...
1
vote
1answer
683 views
Is functional decomposition really an antipattern?
While I was reading The worst anti-patterns you have came across, I clicked on the link in this post to land on the web site about anti-patterns.
And the ...
27
votes
2answers
952 views
What did Alan Kay mean by “assignment” in The Early History of Smalltalk?
I have been reading The Early History of Smalltalk and there are a few mentions of "assignment" which make me question my understanding of its meaning:
Though OOP came from many motivations, two ...
16
votes
5answers
2k views
Is objected oriented programming paradigm outdated since it is anti-modular and anti-parallel?
I have read the controversial article Teaching FP to freshmen posted by Robert Harper who is a professor in CMU. He claimed that CMU would no longer teach object oriented programming in the ...
2
votes
7answers
961 views
Architectural patterns for interaction beyond MVC? [closed]
We all know the venerable Model-View-Controller pattern used to design interaction [mostly] with human users. It is the de-facto standard in OOP environment.
What are some other architectural ...
19
votes
6answers
2k views
Does learning a functional language make a better OOP programmer?
As a Java/C#/C++ programmer I hear a lot of talk about functional languages, but have never found a need to learn one. I've also heard that the higher level of thinking introduced in functional ...
8
votes
5answers
1k views
Which paradigm to use for writing chess engine?
If you were going to write a chess game engine, what programming paradigm would you use (OOP, procedural, etc) and why whould you choose it ? By chess engine, I mean the portion of a program that ...
11
votes
4answers
821 views
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 ...
51
votes
4answers
4k views
Functional Programming vs. OOP
I've heard a lot of talk about using functional languages such as Haskell as of late. What are some of the big differences, pros and cons of functional programming vs. object-oriented programming?
