Questions tagged [functional-programming]
Functional programming is a paradigm which attempts to solve computational problems by the chained evaluation of functions whose output is determined by their inputs rather than the programme state. In this style of programming, side effects and mutable data are deprecated and usually strictly isolated.
746 questions
6
votes
3
answers
3k
views
Does reflection in Java make its functions "first class"
I am always hearing people talk about how Java does not support first class functions, that it is an advantage you get from functional languages, the only way to simulate it in Java is through the use ...
7
votes
3
answers
738
views
Beginning to think functionally [closed]
I've recently gotten into learning about functional programming. I've been coding in Scala most of this past year and am just now starting to fully grasp the power of a functional language.
I want to ...
16
votes
5
answers
5k
views
Functional Languages that compile to Android's Dalvik VM? [closed]
I have a software problem that fits the functional approach to programming, but the target market will be on the Android OS. I ask because there are functional languages that compile to Java's VM, ...
33
votes
5
answers
4k
views
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 ...
23
votes
5
answers
10k
views
Is functional programming strongly related to mathematics?
Is functional programming so related to mathematics because much of the functional programming is depicted with mathematical notions? Is it a MUST to have a strong base of
maths to learn & ...
2
votes
3
answers
2k
views
Embedded Web Server Vs External Web Server
So I've thought of creating a web application in either Lisp or another functional language and was thinking of embedding the web server into the application (have my application handle the HTTP ...
17
votes
3
answers
4k
views
Ur/Web new purely functional language for web programming? [closed]
I came across the Ur/Web project during my search for web frameworks for Haskell-like languages. It looks like a very interesting project done by one person.
Basically, it is a domain-specific purely ...
10
votes
6
answers
939
views
Should I pick up a functional programming language?
I have recently been more concerned about the way I write my code. After reading a few books on design patterns (and overzealous implementation of them, I'm sure) I have shifted my thinking greatly ...
13
votes
9
answers
5k
views
Resources for improving your comprehension of recursion? [closed]
I know what recursion is (when a patten reoccurs within itself, typically a function that calls itself on one of its lines, after a breakout conditional... right?), and I can understand recursive ...
3
votes
7
answers
2k
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 ...
13
votes
9
answers
7k
views
Resources for functional programming beginner [duplicate]
Possible Duplicate:
How to grasp functional programming concepts?
I'm looking for some resources on functional programming subject. It seems to be a paradigm which is gaining visibility and I ...
30
votes
5
answers
22k
views
Haskell vs Erlang for web services
I am looking to start an experimental project using a functional language
and am trying to decide beween Erlang and Haskell, and both have some points
that I really like.
I like Haskell's strong ...
6
votes
1
answer
1k
views
What is needed to implement a usable functional language
I've done some programming in a more-or-less functional style, but I've never really studied pure functional programming.
What is the bare minimum needed to implement a functional language?
As far ...
41
votes
6
answers
5k
views
Why Functional Programming
What is the deal with functional programming? I see talk about it a lot but to be honest I've never found them at all useful. Why do so many universities apparently teach them?
11
votes
7
answers
2k
views
Arguments for Functional Programming [closed]
I've recently been learning F# for fun (I'm a VB.NET/C# dev), and I really like some of what it has to offer. Theoretically that is. But I'm having trouble thinking up of scenarios where I would ...
3
votes
4
answers
232
views
Is it possible to build all features of functional language with only closure?
I'm trying to make a new functional language and it's interpreter for practice.
As I know most basic building block is only a lambda function, and it's just a closure.
I'm not understanding them well, ...
31
votes
6
answers
7k
views
Does learning a functional language make a better OOP programmer? [closed]
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 ...
23
votes
11
answers
8k
views
If we can do functional programming with Python, do we need a specific functional programming language? [closed]
Using generators and lambda, we can do functional programming with Python. You can also achieve the same thing with Ruby.
So the question is: why do we need specific functional programming languages ...
37
votes
7
answers
8k
views
Asynchronous Programming in Functional Languages
I'm mostly a C/C++ programmer, which means that the majority of my experience is with procedural and object-oriented paradigms. However, as many C++ programmers are aware, C++ has shifted in emphasis ...
10
votes
6
answers
5k
views
Is Moore's law (empirically) the same for both memory capacity and processing speed?
Has memory and processing power increased over time around basically in the same rate, or can we say that one or the other has increased more? Has cost decreased in the same rate? And how about the ...
8
votes
4
answers
4k
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 ...
16
votes
4
answers
902
views
Why is it good not to rely on changing state?
This question arises out of the question https://softwareengineering.stackexchange.com/questions/25569/is-haskell-worth-learning
Generally a few often repeated statements are made, about how Haskell ...
23
votes
6
answers
19k
views
Which self balancing binary tree would you recommend?
I'm learning Haskell and as an exercise I'm making binary trees. Having made a regular binary tree, I want to adapt it to be self balancing. So:
Which is most efficient?
Which is easiest to implement?
...
10
votes
4
answers
2k
views
What should I learn from Scheme?
I was wondering what unique features I can learn from Scheme that would help me become a better programmer?
I have a lot experience in mainstream languages, and I am looking to expand my horizons ...
37
votes
9
answers
7k
views
Real world pitfalls of introducing F# into a large codebase and engineering team [closed]
I'm CTO of a software firm with a large existing codebase (all C#) and a sizable engineering team. I can see how certain parts of the code would be far easier to write in F#, resulting in faster ...
33
votes
7
answers
5k
views
Is Haskell's type system an obstacle to understanding functional programming? [closed]
I'm studying Haskell for the purpose of understanding functional programming, with the expectation that I'll apply the insight that I gain in other languages (Groovy, Python, JavaScript mainly.)
I ...
54
votes
3
answers
27k
views
What is a lambda, and why would it be useful? [closed]
So far I heard about :
Lambda calculus
Lambda programming
Lambda expressions
Lambda functions
Which all seems to be related to functional programming...
Apparently it will be integrated into C++1x, ...
28
votes
7
answers
22k
views
Purest functional programming language(s)? [closed]
I'm interested in better learning functional programming. To do so, it seems obvious that I should force myself to use the purest possible functional programming language. Hence, I'm here asking, more ...
54
votes
6
answers
40k
views
Choosing a functional programming language [closed]
I have read a lot of threads about functional programming languages lately (almost in the past year, in fact). I would really like to pick one and learn it thoroughly.
Last [course] semester, I have ...
59
votes
12
answers
12k
views
What programming language generates fewest hard-to-find bugs? [closed]
What language, in your opinion, allows the average programmer to output features with the least amount of hard-to-find bugs? This is of course, a very broad question, and I'm interested in very broad ...
12
votes
12
answers
13k
views
Is functional programming actually used to create applications? [duplicate]
Possible Duplicate:
What are some well known applications written in F#?
I see a lot of people talking about how cool functional programming is, how awesome Lisp and Haskell and F# are, etc, but ...
13
votes
4
answers
2k
views
Functional Programming - Does Knowing It Help Job Prospects? [closed]
The main language that I use at the moment is C# and I am the most comfortable with it. However, I have started dabbling in F# and Haskell and really enjoy those langauges. I would love to improve my ...
51
votes
14
answers
8k
views
Why the current enthusiasm for Functional Programming? [closed]
I've been hearing a lot of enthusiasm about functional programming languages lately, with regards to Scala, Clojure, and F#. I've recently started studying Haskell, to learn the FP paradigm.
I love ...
48
votes
7
answers
25k
views
Haskell AND Lisp vs. Haskell OR Lisp [closed]
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 ...
15
votes
2
answers
5k
views
Beautiful Erlang Code [closed]
I'm trying to learn more about Erlang than the toy projects I've been playing with. To this end, I'm reading through Programming Erlang and some of the archives from Armstrong on Software.
I would ...
8
votes
2
answers
589
views
Design Pattern Books, Papers or Resources for Non-Object Orientated Paradigms?
After viewing this video on InfoQ about functional design patterns I was wondering what resources are out there on design patterns for non-object orientated paradigms. There are plenty out there for ...
81
votes
14
answers
37k
views
Why are side-effects considered evil in functional programming?
I feel that side effects are a natural phenomenon. But it is something like taboo in functional languages. What are the reasons?
My question is specific to functional programming style. Not all ...
13
votes
4
answers
2k
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 ...
24
votes
5
answers
9k
views
For what common problems is functional programming not a good fit? [closed]
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 ...
98
votes
5
answers
32k
views
Functional Programming vs. OOP [closed]
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?
75
votes
4
answers
16k
views
What are the biggest differences between F# and Scala?
F# and Scala are both functional programming langugages that don't force the developer to only use immutable datatypes. They both have support for objects, can use libraries written in other languages ...
30
votes
13
answers
13k
views
What's your strongest opinion against functional programming? [closed]
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'...
8
votes
3
answers
3k
views
Should we be using functional and/or logic programming languages more?
I've programmed a bit of Haskell and Prolog as part of a couple of uni courses, but that's about it. And I've never seen it been used in industry (not that I've had much of working experience to begin ...
25
votes
9
answers
12k
views
What decent web-frameworks exists for functional programming? [closed]
I would like to do some web programming using functional programming. What decent web-frameworks exists for functional programming languages?
25
votes
3
answers
8k
views
Is there a canonical tutorial or book on functional programming concepts? [closed]
Coming from a procedural/OO programming background, I tend to write Scheme programs in a procedural fashion. I would be intersted in learning Scheme or Lisp in a functional way from the ground up, to ...
65
votes
12
answers
21k
views
Why isn't functional programming more popular in the industry? Does it catch on now? [closed]
During my four years at university we have been using much functional programming in several functional programming languages. But I have also used much object oriented programming to, and in fact I ...