Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Undeniable proof that Haskell is the best…

Name: Anonymous 2012-03-26 13:54

…and that you need to scrub more toilets if you disagree.


http://wadler.blogspot.jp/2012/03/empirical-investigation-of-influence-of.html

An Empirical Investigation of the Influence of a Type of Side Effects on Program Comprehension

I've bemoaned before the lack of empirical research on programming language design. Here[1] is one modest result, showing what you might expect, that side effects in expressions harm program comprehension. The sign of a good psychological experiment is surprise. While the result in this case is unsurprising, perhaps the observation of similar results for both inexperienced and experienced programmers is a bit more surprising.

This paper reports the results of a study on the impact of a type of side effect (SE) upon program comprehension. We applied a crossover design on different tests involving fragments of C code that include increment and decrement operators. Each test had an SE version and a side-effect-free (SEF) counterpart. The variables measured in the treatments were the number of correct answers and the time spent in answering. The results show that the side-effect operators considered significantly reduce performance in comprehension-related tasks, providing empirical justification for the belief that side effects are harmful.

[1] http://dx.doi.org/10.1109/TSE.2003.1214329

Name: Anonymous 2012-03-26 14:05

So it suggests that side effects are bad. It doesn't prove, however, that Haskell is the Best™.

Name: Anonymous 2012-03-26 14:14

This is about C code. You can't conclude anything about Haskell from this.

Name: Anonymous 2012-03-26 15:25

Summary of his post:

C is shit
C has side effects
Haskell has no side effects
Therefore, Haskell is not shit

Name: Anonymous 2012-03-26 16:20

If your program doesn't have side effects it's a shitty language. Real wizards understand the power of their spells.

Name: Anonymous 2012-03-26 16:39

itt haskell programmers don't realize their program gets compiled down to ASM which in fact does have side effects and thus their program does have side effects

Name: Anonymous 2012-03-26 16:44

>>6
Not on the Reduceron, ``faggot''.
http://www.cs.york.ac.uk/fp/reduceron/

Name: Anonymous 2012-03-26 17:00

>>6
How is that relevant to the programmer?

Name: Anonymous 2012-03-26 17:03

>>8
ASM is shit; compile to JavaScript.

Name: Anonymous 2012-03-26 17:08

You can't run algorithms on Google's matrices without side effects, passing a terabyte by copy isn't exactly viable.

Name: Anonymous 2012-03-26 17:13

>>10
I have no clue about functional programming, but when you're faced with a side effect, call it a monad instead!

Don't change these.
Name: Email:
Entire Thread Thread List