2 ms·
Maybe that just says something about my intelligence, or maybe the functional camp hasn't yet figured out how to write large programs in a readable way. Haskel
by chongli 13y ago
Maybe that just says something about my intelligence, or maybe the functional camp hasn't yet figured out how to write large programs in a readable way.
Haskell programmers tend not to write large programs, period. Instead, we build lots of libraries until our problem is trivial to solve.
Case in point, see the list of operators defined by the popular Lens library
Not really a fair example. Lens is not a program (large or otherwise), it is a new programming language embedded within Haskell. Viewed within that context, its bevy of operators is somewhat justified. The other thing to note about it is that lens was designed specifically to avoid clashing with variable and operator names defined in other popular libraries so that users could import it unqualified.
- AnimalMuppet 13y ago> Haskell programmers tend not to write large programs, period. Instead, we build lots of libraries until our problem is trivial to solve. But if the libraries that you write, taken together, are large, then you are in fact writing a large program. Calling part of it "libraries" doesn't change that. (So far as I can see, that's no different than a C programmer writing lower-level functions, or an assembly language programmer writing subroutines. Everybody does that - at least, everybody sane.)
- chongli 13y agoI wanted to avoid getting into a discussion about the merits of Haskell vs other languages. I was merely making a statement about what I perceive is the common practice of Haskell programmers. Do I believe that Haskell as a language provides features which allow for greater modularity, reusability, composability and generality than most other languages? Yes. However, to explain it all in great detail would take far too long. Besides that, others have already laid much of the groundwork for explaining these advantages in a much better format than I can muster here. Here's one simple example (which happens to describe the advantages of laziness): http://augustss.blogspot.ca/2011/05/more-points-for-lazy-evaluation-in.html http://augustss.blogspot.ca/2011/05/more-points-for-lazy-eva...
- dragonwriter 13y ago> Haskell programmers tend not to write large programs, period. Instead, we build lots of libraries until our problem is trivial to solve. So, how is that different from any other language since the invention of functional/procedural decomposition? Programmers generally write libraries and then compose them, rather than writing large monolithic programs, irrespective of language.
- nardi 13y agoI think he's saying that Haskell programmers do this more than other programmers. I agree.