views:

404

answers:

7
+1  Q: 

The Zen of Ruby

Hi,

I have written a Ruby gem named 'this'. Get it here http://rubygems.org/gems/this. Purpose of 'this' is to show quotes of 'The Zen of Ruby' whenever you "require 'this'". As I could not find any equivalent zen quotes for Ruby, currently I am using 'The Zen of Python' (PEP 20). Extremely sorry for using it :)

Can you guys suggest me good quotes that Ruby 'Zen' should have. I would update 'this' gem to have new quotes.

Thanks.

+1  A: 

'There is more than one way to do everything and this is good'

workmad3
+1  A: 

"blocks aren't objects" and the corollary "blocks are objects"

workmad3
+1  A: 

'easy is better than simple'

workmad3
or maintainable, apparently.
Bill K
I find well written Ruby code to be some of the most maintainable; of course, poorly written code (in any language) is a nightmare...
maerics
+5  A: 

MINASWAN: Matz is nice, and so we are nice

manveru
You missed what the first "A" is for? It should be "always"?
Ryan Bigg
No, it's "and". The first use of it on ruby-talk was: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/158958
manveru
+4  A: 

Did you write a test for that?

Ryan Bigg
I would definitely write tests in the next version of it. Ship it Squirrel (http://shipitsquirrel.github.com/) influenced me.
Anil
Specs included now.
Anil
+2  A: 

"Zen of Ruby" is an oxymoron.

John Machin
+1  A: 

'Premature optimization is the root of all evil.'

Tass