News for hackers. Stuff that matters.
Re:CoffeeScript One Liners by Argorak on Thursday June 02, 2011 @06:54AM (#2611421)
I fail see how map is a difficult concept, despite being a word that needs to be learned. I do a lot of training for Ruby and usually introduce enumerable.rb first to all newbies. Usual reaction: "cool, I finally have a word for that". It gives programmers the ability to _express_ what action they are doing there, instead of leaving them free-floating in a for-loop-soup.
Re:CoffeeScript One Liners by ricardobeat on Thursday June 02, 2011 @07:04AM (#2611445)
For example, ask your parents about map, then the comprehension, which one will they be able to understand?

It's about usability: the most ingenious programmer will be more efficient using a simpler, straight-forward interface as long as it accomplishes the task. You're a user of a language's interface/syntax.

But we are drifting off here. I'll avoid using "expressive" the next time around :)

Re:CoffeeScript One Liners by jessedhillon on Thursday June 02, 2011 @02:57PM (#2613377)
> For example, ask your parents about map,

Since when is that the standard for a programming language? Some tools are made for expert usage -- they require training and foreknowledge. Programming languages weren't made for your mom.

Re:CoffeeScript One Liners by thenduks on Thursday June 02, 2011 @03:18PM (#2613474)
The funny part is that your parents probably wont understand the comprehension either. Even if they were likely to, I prefer to leave things the way they are when the only reason to change it is "now my kid brother can do it!"
Re:CoffeeScript One Liners by ricardobeat on Thursday June 02, 2011 @03:33PM (#2613560)
Am I on reddit? y u no read previous comments?
Re:CoffeeScript One Liners by Argorak on Thursday June 02, 2011 @07:17AM (#2611475)
Actually, both of my parents are programmers of the old school, so they even understand the difference between foldr and foldl.

I am actually in favor of having both options, so we might be on the same page actually. What I am opposed to, is the notion of adding a positive label to the less specialized version and a negative to the other.

Re:CoffeeScript One Liners by BasDirks on Thursday June 02, 2011 @07:35AM (#2611506)
map is an easy and powerful concept, but a comprehension resembles natural language better. I agree though that map is more _expressive_ (a more concise and comprehensive way of communicating).