News for hackers. Stuff that matters.
Re:New Ruby 1.9 Features, Tips & Tricks by carbon8 on Monday February 21, 2011 @03:45PM (#2247092)
"If you want a language where there's only one way to do it, I think there's a language with that exact motto."

Be that as it may, in Ruby you should also follow conventions, write readable code, use the most obvious choice when possible and avoid being unnecessarily clever. Most of the core principles that Python promotes should also be heeded when writing Ruby code. Ruby gives you the flexibility to choose different options, but that doesn't mean that the flexibility should be abused.

Re:New Ruby 1.9 Features, Tips & Tricks by oewolf on Monday February 21, 2011 @04:08PM (#2247185)
And it isn't abuse until it is used in a specific abusive way. Having the options available to you isn't abusing it.
Re:New Ruby 1.9 Features, Tips & Tricks by sigzero on Monday February 21, 2011 @06:33PM (#2247813)
Doesn't it "bloat" the language though?
Re:New Ruby 1.9 Features, Tips & Tricks by oewolf on Monday February 21, 2011 @11:15PM (#2248697)
That is subjective. You can feel it is bloated, but I would call it handy and expressive.
Re:New Ruby 1.9 Features, Tips & Tricks by philwelch on Monday February 21, 2011 @07:36PM (#2248033)
Conventions vary from DSL to DSL. The flexibility doesn't have to be used by the application programmer to be useful. Think of how gemfiles or Rspec would look without optional parentheses in method calls. Even though parens are usually the way to go, sometimes you want different conventions in your DSL.