News for hackers. Stuff that matters.
Re:Maybe Monads Might Not Matter by cageface on Friday February 25, 2011 @10:32AM (#2262456)
Sometimes it really amazes me just how far out of touch with the mainstream people in the FP community can be. Any concept that the elite struggle with as much as monads simply has no place in the working programmer's toolbox. Haskell is a wonderful research language. It and its ilk will never be bread & butter.
Re:Maybe Monads Might Not Matter by nopassrecover on Friday February 25, 2011 @10:37AM (#2262468)
The same could be said originally for generics and lambdas which have become increasingly common elements of programming. Complex ideas can yield powerfully simple and useful implementations.
Re:Maybe Monads Might Not Matter by forkandwait on Friday February 25, 2011 @10:50AM (#2262512)
I would say about one out fifty (2%) of bread and butter programmers can actually figure out how to pass an anonymous function as a parameter to another function. Granted, those 2% are probably a lot more important than the other 48%, but I don't think lambdas are actually common...

Also, if one of those 2% have to write code understood by the other 48%, they probably shouldn't use a ton of anonymous functions (or generics, whatever they are).

Re:Maybe Monads Might Not Matter by mquander on Friday February 25, 2011 @11:05AM (#2262572)
Really, so what should you use a ton of in hopes of making code easy to understand for a programmer that doesn't understand first-class functions? What makes you think they understand polymorphism? What about exceptions? Do you think they understand pass-by-value versus pass-by-reference? Do you think they understand any data structures? Pointers? Loops? Boolean logic?

It's ridiculous to complicate your code in an attempt to hit some moving target of "an ignorant person might be able to understand this." If a "bread-and-butter" programmer is using a modern language and doesn't understand functions, the correct response by everyone involved is for that programmer to spend some time understanding functions. I dare say the same is true for monads, although in many languages monads are hard to abstract out, and thus have less of an everyday value.

Re:Maybe Monads Might Not Matter by kscaldef on Friday February 25, 2011 @11:01AM (#2262557)
Are you saying that you think only 2% of programmers are capable of programming in Ruby? Blocks are pervasive in Ruby, and although technically slightly different than anonymous functions, conceptually very similar.

(Also, you mean "the other 98%".)

Re:Maybe Monads Might Not Matter by chromatic on Friday February 25, 2011 @02:21PM (#2263424)
Perhaps the distinction between "can copy and paste existing syntax examples" and "understand what the syntax does" is significant.
Re:Maybe Monads Might Not Matter by epochwolf on Friday February 25, 2011 @11:05AM (#2262568)
I would like to point out ruby makes it very difficult not to pass around anonymous functions.

>2% have to write code understood by the other 48%

that would be the other 98% ;)

Re:Maybe Monads Might Not Matter by MichaelGG on Friday February 25, 2011 @11:10AM (#2262591)
Only 2% can figure out how to use a lambda? I guess it all depends on your definition of "programmer".

Note you did not say "already know", but "can actually figure out". I don't want to know what kind of software is being written by someone who, if they tried, could not actually figure out how to pass a lambda.

Re:Maybe Monads Might Not Matter by nopassrecover on Friday February 25, 2011 @12:39PM (#2262986)
Lambdas and generics are essential to writing modern C# code - that language everyone seems to deride as dumbed down for your average programmer. jQuery likewise uses a lot of anonymous functions, and even front-end devs without heavy code experience manage to use this.
Re:Maybe Monads Might Not Matter by cageface on Friday February 25, 2011 @07:42PM (#2264424)
FP research has contributed many valuable ideas to the programming mainstream. However, after watching entire rooms full of top 5% programmers scratching their heads in bafflement over explanations of monads I very much doubt monads will earn this distinction, at least not in any kind of explicit use.
Re:Maybe Monads Might Not Matter by jimmyjazz14 on Friday February 25, 2011 @11:12AM (#2262599)
Plenty of "the elite" find monads quite common place and use them effectively for real mainstream programming every day.

I might say people in the FP world are much more in touch with the future of programming then most. Languages like Haskell are solving problems (elegantly) that many mainstream programmers have not yet come across but they will.