From: Julian Leviston Date: 2008-03-28T09:36:00+09:00 Subject: Re: What is Ruby's biggest strength ? So, you think this: #include for(count = 1; count <= 200; count++) { printf("%d ", count * 300); } is less ugly than this: puts (1..100).map{|num| num * 300}.join(" ") are you serious? Even if you spell all the ruby out fully, then you end up with less code, and it's much nicer looking and easier to understand, even to non-programmers: range = (1..100) multiplied_numbers = range.map{|num| num * 300} string_to_output = multiplied_numbers.join(" ") puts string_to_output On 15/03/2008, at 12:05 PM, 7stud -- wrote: > Marc Heiler wrote: >>> What helps Ruby stronger than other programming languages >> >> These days, I would give the following reasons for ruby: >> >> >> - Extremely clean code compared to the other languages I know/look >> at. >> > > In my opinion that is a a lie perpetuated by the ruby community. In > my > opinion, ruby syntax is ugly. But even if you think the syntax is > clean, ruby is all about cramming 4 or 5 function calls into one line > and sprinkling some regex's in for spice, which is creates an > indecipherable mess. I've never encountered any language that is > coded > so poorly by its community. Most of the code I see posted is very > hard > to decipher, but if you say perl is worse, I'll believe you. > > > -- > Posted via http://www.ruby-forum.com/. >