2 ms·
But isn't that arguing against a strawman? Nobody is arguing that FP code is automatically good by virtue of being written in an FP-oriented language. For exam
by the_af 10y ago
But isn't that arguing against a strawman? Nobody is arguing that FP code is automatically good by virtue of being written in an FP-oriented language.
For example, you can write a beautiful algorithm that solves the wrong problem. No language will help you with that.
Or you can write a program in language X that ignores every convention or practice -- you can write code that makes an extraordinary effort at subverting the type system, for example -- but that's more of an argument against your understanding of X.
I do agree with the author that FP, good as it is, is not enough. That's not an argument against FP, it's an argument in favor of devising even better tools, practices and the theoretical underpinnings for building correct software.
- twblalock 10y ago> Nobody is arguing that FP code is automatically good by virtue of being written in an FP-oriented language. People do say that, so it's not a strawman. > I do agree with the author that FP, good as it is, is not enough. That's not an argument against FP, it's an argument in favor of devising even better tools, practices and the theoretical underpinnings for building correct software. The article was not an argument against FP. Why do you think it is? It is simply an argument against a certain justification for using FP, namely that it guarantees good code.
- the_af 10y ago> People do say that, so it's not a strawman. Who says this? No-one who is a serious practitioner of FP (as opposed to someone who just reads about it in blogs) will tell you that FP automatically guarantees good code. You'll hear that FP goes a long way at reducing some common sources of errors, which is a pretty big deal, but automatically correct code? No-one will claim that. > The article was not an argument against FP. I didn't say the article was. Besides the clickbait title, and some dubious assertions (and a poor example with QuickSort), I do agree with the overall assertion that "FP is good, but not enough".
- twblalock 10y ago> Who says this? No-one who is a serious practitioner of FP (as opposed to someone who just reads about it in blogs) will tell you that FP automatically guarantees good code. No true scotsman fallacy.
- the_af 10y agoThe problem with the No True Scotsman fallacy is that it's impossible to apply to the internet, where there is always someone out there who will claim anything about anything. Therefore, in order to have a rational discussion about this, we must apply some sort of filter. I propose this filter: no-one who is an actual practitioner of FP (someone who uses it to build software, not someone who just talks about it in the internet) will not make the claim you mentioned, i.e. "FP guarantees good code" (I'm quoting you verbatim). I hope it stands to reason that it doesn't matter what people who've never used FP claim about FP.
- twblalock 10y agoIt's still a fallacy. Being on the internet doesn't change that. > I hope it stands to reason that it doesn't matter what people who've never used FP claim about FP. That doesn't matter. An argument is not a strawman if it has been made by anyone, anywhere, anytime, for any reason. You can't just filter out the people you think don't count. An argument is only a strawman if it is a false argument, e.g. one that has been invented by the person who is arguing against it. If you want to have a discussion about the merits of FP, feel free to filter out whoever you like. But you said the argument mentioned in the article is a strawman, and it isn't.
- AnimalMuppet 10y agoAlso empirically disproven, even on HN. It seems there's a phase that some FP programmers go through where they have a zealotry that requires convincing the masses of the glorious wonders of FP. For the most part, they seem to either outgrow the "FP is the One True Way" zealotry, or at least learn to keep it to themselves for the most part. In fairness, I'd say that I've seen it on HN less in the last year or so than I did before that.