Skip to main content

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.

Filter by
Sorted by
Tagged with
6 votes
3 answers
3k views

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 ...
toc777's user avatar
  • 451
7 votes
3 answers
738 views

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 ...
three-cups's user avatar
16 votes
5 answers
5k views

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, ...
Berin Loritsch's user avatar
33 votes
5 answers
4k views

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 ...
dvanaria's user avatar
  • 605
23 votes
5 answers
10k views

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 & ...
prasonscala's user avatar
  • 1,631
2 votes
3 answers
2k views

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 ...
Jetti's user avatar
  • 5,183
17 votes
3 answers
4k views

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 ...
Phil's user avatar
  • 552
10 votes
6 answers
939 views

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 ...
Statement's user avatar
  • 235
13 votes
9 answers
5k views

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 ...
Andrew M's user avatar
  • 1,091
3 votes
7 answers
2k views

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 ...
9000's user avatar
  • 24.4k
13 votes
9 answers
7k views

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 ...
Herberth Amaral's user avatar
30 votes
5 answers
22k views

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 ...
Zachary K's user avatar
  • 10.4k
6 votes
1 answer
1k views

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 ...
Bill K's user avatar
  • 2,759
41 votes
6 answers
5k views

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?
user avatar
11 votes
7 answers
2k views

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 ...
System Down's user avatar
  • 4,763
3 votes
4 answers
232 views

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, ...
Eonil's user avatar
  • 1,739
31 votes
6 answers
7k views

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 ...
GavinH's user avatar
  • 676
23 votes
11 answers
8k views

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 ...
Joshua Partogi's user avatar
37 votes
7 answers
8k views

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 ...
Charles Salvia's user avatar
10 votes
6 answers
5k views

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 ...
rsenna's user avatar
  • 348
8 votes
4 answers
4k views

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 ...
poke's user avatar
  • 560
16 votes
4 answers
902 views

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 ...
ocodo's user avatar
  • 2,977
23 votes
6 answers
19k views

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? ...
dan_waterworth's user avatar
10 votes
4 answers
2k views

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 ...
bunglestink's user avatar
  • 2,262
37 votes
9 answers
7k views

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

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 ...
Eric Wilson's user avatar
  • 12.1k
54 votes
3 answers
27k views

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, ...
jokoon's user avatar
  • 2,280
28 votes
7 answers
22k views

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 ...
Joanis's user avatar
  • 1,364
54 votes
6 answers
40k views

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 ...
Joanis's user avatar
  • 1,364
59 votes
12 answers
12k views

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

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 ...
Mason Wheeler's user avatar
13 votes
4 answers
2k views

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 ...
Jetti's user avatar
  • 5,183
51 votes
14 answers
8k views

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 ...
Eric Wilson's user avatar
  • 12.1k
48 votes
7 answers
25k views

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 ...
Zeke's user avatar
  • 1,854
15 votes
2 answers
5k views

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 ...
Inaimathi's user avatar
  • 4,874
8 votes
2 answers
589 views

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 ...
FinnNk's user avatar
  • 5,809
81 votes
14 answers
37k views

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 ...
Gulshan's user avatar
  • 9,542
13 votes
4 answers
2k views

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 ...
letronje's user avatar
  • 491
24 votes
5 answers
9k views

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 ...
Jonas's user avatar
  • 14.9k
98 votes
5 answers
32k views

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?
GSto's user avatar
  • 8,541
75 votes
4 answers
16k views

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 ...
Jonas's user avatar
  • 14.9k
30 votes
13 answers
13k views

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'...
Jonas's user avatar
  • 14.9k
8 votes
3 answers
3k views

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 ...
gablin's user avatar
  • 17.6k
25 votes
9 answers
12k views

I would like to do some web programming using functional programming. What decent web-frameworks exists for functional programming languages?
Jonas's user avatar
  • 14.9k
25 votes
3 answers
8k views

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 ...
Federico klez Culloca's user avatar
65 votes
12 answers
21k views

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 ...
Jonas's user avatar
  • 14.9k