News for hackers. Stuff that matters.
Re:Functional Programming Jargon by kowdermeister on Tuesday November 07, 2017 @05:38AM (#15642289)
So you won't have to spend an eternity to reverse engineer the syntax of a language you don't know. Like a lean Chinese book written in Chinese would be a bit counter productive intended for westerners.
Re:Functional Programming Jargon by wruza on Tuesday November 07, 2017 @08:03AM (#15642981)
It always wondered me why javascript people would spend an eternity to get a new syntax. Is it afterpain of learning the precedence or []+{} rules? It is not that bad in other languages, and no, it is not Chinese, let you believe.
Re:Functional Programming Jargon by ashark on Tuesday November 07, 2017 @12:03PM (#15645118)
Apparently-idiomatic (I think—I can't tell) Haskell reads like line noise mixed with pig latin to me. I've bounced off it harder than any other programming language I've ever taken more than 15 seconds to try to understand. It makes me feel the way I assume dyslexic people feel.
Re:Functional Programming Jargon by klibertp on Tuesday November 07, 2017 @01:39PM (#15646177)
It's not "Haskell syntax" - the language itself doesn't have that many syntactic constructs. The "line noise" feeling comes from the ability to define new operators with custom precedence and associativity and the fact that people use the custom operators for everything. I don't know why it is so - OCaml also allows you to define your own operators, but OCaml programmers tend to use that ability much less frequently.
Re:Functional Programming Jargon by TuringTest on Tuesday November 07, 2017 @09:21AM (#15643530)
Understanding Haskell syntax requires a lot more than learning the precedence of []+{}. Plus, if you already have a very chewy and hard topic to learn, adding a new PL syntax on top of it certainly won't help.
Re:Functional Programming Jargon by kowdermeister on Tuesday November 07, 2017 @09:40AM (#15643701)
I can get usually into new syntax fairly fast, but with languages like Haskell, where the syntax and the concepts also new, then complexity just rise exponentially for me and I have too many questions with too few answers, so I lose interest.
Re:Functional Programming Jargon by eru on Tuesday November 07, 2017 @06:21AM (#15642467)
And JavaScript has enough functional support to be able to express the concepts.

Some of the more type-y stuff is a bit harder to describe, though. But I think it's a worthwhile tradeoff for ease of accessibility.

(Now using C++ would have been truly boneheaded---since they don't have first-class functions in that language.)

Re:Functional Programming Jargon by AzzieElbab on Tuesday November 07, 2017 @05:08PM (#15648124)
"Now using C++ would have been truly boneheaded ..."

https://bartoszmilewski.com/2015/01/20/functors/

Re:Functional Programming Jargon by eru on Wednesday November 08, 2017 @06:43AM (#15651467)
Yes, you can do it in C++. But it's not a good medium for teaching those concepts. (The excellent article you linked to explains them in Haskell first, and then shows how to do them in C++ only afterwards.)
[dead]
Re:Functional Programming Jargon by Veen on Tuesday November 07, 2017 @06:46AM (#15642567)
However much it might pain you, JavaScript is the most popular programming language on the planet. Most developers who are interested in learning functional programming are JavaScript developers. It would be boneheaded to use anything other than JavaScript.
Re:Functional Programming Jargon by shakna on Tuesday November 07, 2017 @07:32AM (#15642818)
> It would be boneheaded to use anything other than JavaScript.

There's a whole heap of really easy to read languages that are used to explain this kind of thing.

Scheme and SICP come to mind, for example.

Re:Functional Programming Jargon by marcosdumay on Tuesday November 07, 2017 @09:31AM (#15643624)
> Most developers who are interested in learning functional programming are JavaScript developers.

Whatever they believe, they will probably gain much more from learning a second language (any second language) than by learning about functional programming jargon.

Re:Functional Programming Jargon by kowdermeister on Tuesday November 07, 2017 @06:42AM (#15642549)
Which of JavaScript's terribleness appears in the examples provided by the article?

I was referring to fully functional languages. I love Python too, however its lambdas have a bit weird syntax.

Re:Functional Programming Jargon by wruza on Tuesday November 07, 2017 @08:07AM (#15643003)
Even “why javascript” link has error in it. And I spotted it not even writing js daily, probably because of the fact that it is such a joke.
Re:Functional Programming Jargon by kowdermeister on Tuesday November 07, 2017 @09:36AM (#15643658)
That "error" is an urlencoded question mark. If that's your biggest problem, fine, but point fingers at GitHub :)
Re:Functional Programming Jargon by wruza on Tuesday November 07, 2017 @01:11PM (#15645862)
It is not in url, it is in the text “equivalent”.