News for hackers. Stuff that matters.
Re:Ruby is beautiful (but I'm moving to Python) by nickik on Sunday November 28, 2010 @04:20PM (#1948336)
1. You can not really juge the source code of a language if you don't the language. Reading alot of functional code is almost always easier then OO code because of pure functions. Look at this video for example at the videos witch can be found here http://www.janestcapital.com/technology/ocaml.php

2. The learning curve of those languages is not bigger then the learning curve of other languages. Time time I spend with making pretty OO designs in school was way bigger then the time it took me to learn clojure and FP in general but this of course is a issue we can not solve. I just don't like it if people say something as if it is a fact.

3. Is it more convenient to do this array.select &:even? better then (filter even? array)

The later seams more intuitive to me and I didn't have to learn more syntax.

4. In Lisp not every DSL looks like Lisp.

Re:Ruby is beautiful (but I'm moving to Python) by foljs on Sunday November 28, 2010 @09:25PM (#1949137)
"The learning curve of those languages is not bigger then the learning curve of other languages."

If only it wasn't for the fact that reality and history has proven otherwise...

Re:Ruby is beautiful (but I'm moving to Python) by nickik on Monday November 29, 2010 @03:01AM (#1949741)
The Homecomputer on witch most programmer learned where to slow for functional languages of that time. So FP could only be used in specialized domains.

Most programmers went form basic (lack of alternative) to C then C++ and now Java thats a path of simularity. Most where never exposed to functional programming and now the all have a hard time to switching there OO brain off.

Re:Ruby is beautiful (but I'm moving to Python) by masklinn on Monday November 29, 2010 @02:29AM (#1949690)
Any source for that utterly outlandish claim?
Re:Ruby is beautiful (but I'm moving to Python) by foljs on Thursday December 02, 2010 @12:27PM (#1962812)
Utterly outlandish? Please.

The only proof we have of something being easier to learn, beside anecdotal evidence ("oh, I tried it and it was easy") is statistical empirical evidence, i.e people actually learning it. Well, people are not actually learning those languages. They are learning the "other ones".

(Where by people, I mean: a significant percentage of people, > 1%. I'm sure me, you and that "professional programmer who gives a shit about Haskell" do not a significant percentage make).

Even in universities, students find functional languages difficult, and opt-out of those classes.