On 6/24/15 3:59 PM, Jacob Carlborg wrote:
On 24/06/15 15:43, Adam D. Ruppe wrote:

Absolutely.

I don't even like names that are just kinda similar. Ruby, for example,
has `chop` and `chomp`. What's the difference? idk, I have to look it
up. (chop will also remove non-newlines from the end)

Yeah, Ruby has one too many aliases:

filter/select, find/detect, map/collect and the best: size/length/count.
Do you know the difference between size, length and count?


I recently started learning ruby. Going through a tutorial, I came across this gem (no pun intended) when talking about how both intern and to_sym do the same thing:

"Why have multiple ways to do the same things?

Well, that's a silly question. To be able to write expressive code. A language that only has one way to get from A to B is not a language at all."

Wow.

-Steve

http://www.codecademy.com/forum_questions/512a675cf116c52d0d00674b

Reply via email to