From: why the lucky stiff Date: 2006-05-02T01:57:00+09:00 Subject: Re: More explicit Ruby code Brad wrote: >I'm not a long time Ruby coder, but I have coded for quite some time. I >wanted to ask the groups' opinion on being more explicit with Ruby code. >I like to code like this: > >Kernel.puts("Print this string") > >instead of this: > >puts "Print this string" > > One nice thing about using a bare 'puts' in your code is that you can override it as your code matures. def puts(msg) @log.info(msg) end Anyway, even Kernel can be overridden/deleted. A similar hack can be seen in Derby, where you swap YAML into DRb: require 'drb/drb' require 'yaml' module DRb Marshal = ::YAML end _why