in reply to Balancing Logging and Code Readability
I'm not saying my way is the One True Way, but that's what I do and it works for me.# bad log("This code is broken!") unless $obj->method_call(arg1 => 'abc', ar +g2 => 123); # good $obj->method_call(arg1 => 'abc', arg2 => 123) or log("This code is broken!");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Balancing Logging and Code Readability
by ack (Deacon) on Sep 17, 2009 at 02:22 UTC | |
by kwaping (Priest) on Sep 17, 2009 at 17:33 UTC |