R
Robert Dober
Hi list
this is incredibly simple, but I just wanted to know what you think about it.
I really often write the following code
puts <whatever> if $DEBUG
I guess you all do that to some extent, James just talked a newbie
into it recently
The first programmer's virtue of course makes me do some things like
def debug *args, &blk
return unless $DEBUG
<do something incredibly smart with the args >
end
and sometimes on some of my machines I will do something like
require 'ilmig/tools/debug'
I feel that this might be so common place that a Kernel::debug or
whatever other suitable name might be a good idea.
I am listening ....
Cheers
Robert
this is incredibly simple, but I just wanted to know what you think about it.
I really often write the following code
puts <whatever> if $DEBUG
I guess you all do that to some extent, James just talked a newbie
into it recently
The first programmer's virtue of course makes me do some things like
def debug *args, &blk
return unless $DEBUG
<do something incredibly smart with the args >
end
and sometimes on some of my machines I will do something like
require 'ilmig/tools/debug'
I feel that this might be so common place that a Kernel::debug or
whatever other suitable name might be a good idea.
I am listening ....
Cheers
Robert