2008/6/25 Robert Dober <robert.dober / gmail.com>:
> Could not agree more with you. May I add some other reasons.
> This approach vioaltes principles we regard rather highly on this list
> It is not DRY, you are really repeating yourself and  in case of the
> metaprogramming solutions you let Ruby repeat itself.
> It is just much less simple than necessary.
> You spread code dependencies all over the place, as a matter of fact
> the expression "dependency injection" says it allready it is almost as
> putting a virus (with constructive behavior) into your code, but can
> you imagine how much more work refactoring will become?

Absolutely!

> My order of preference would be
> 1. $logger or $LOGGER
> 2. Logger
>
> 43. Kernel::log (or Object.log)

Now, this really makes me wonder about the position before the last
one in that list...
:-)

Kind regards

robert

-- 
use.inject do |as, often| as.you_can - without end